Learn R Programming

scan - Single-Case Data Analyses for Single and Multiple Baseline Designs

A collection of procedures for analysing, visualising, and managing single-case data. These include regression models (multilevel, multivariate, bayesian), between case smd, overlap indices ('PND', 'PEM', 'PAND', 'PET', 'tau-u', 'IRD', 'baseline corrected tau', 'CDC'), and randomization tests. Data preparation functions support outlier detection, handling missing values, scaling, and custom transformations. An export function helps to generate html, word, and latex tables in a publication friendly style. A shiny app allows to use scan in a graphical userinterface. More details can be found in the online book 'Analyzing single-case data with R and scan', Juergen Wilbert (2025) https://jazznbass.github.io/scan-Book/.

Copy Link

Version

Install

install.packages('scan')

Monthly Downloads

425

Version

0.66.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Juergen Wilbert

Last Published

September 2nd, 2025

Functions in scan (0.66.0)

na.omit.scdf

scdf objects Removes any row with a missing value
export

Export scan objects to html or latex
import_scdf

Import scdf – RStudio Addin
is.scdf

scdf objects Tests for objects of type "scdf"
mplm

Multivariate Piecewise linear model / piecewise regression
example_data

Single-case example data
ird

IRD - Improvement rate difference
hplm

Hierarchical piecewise linear model / piecewise regression
fetch

Fetches elements from scan objects Getter function for scan objects
fill_missing

Replacing missing measurement times in single-case data
overlap

Overlap indices for single-case data
%>%

Pipe
plm

Piecewise linear model / piecewise regression
nap

Nonoverlap of all Pairs
pem

Percent exceeding the median
plot_rand

Plot random distribution
pet

Percent exceeding the trend
plot.scdf

(Deprecated) Plot single-case data
pand

Percentage of all non-overlapping data
outlier

Handling outliers in single-case data
power_test

Empirical power analysis for single-case data
rescale

Rescales values of an scdf file
pnd

Percentage of non-overlapping data
rand_test

Randomization Tests for single-case data
print.scdf

Print an scdf
read_scdf

Load single-case data from files
ranks

(Deprecated) Rank-transformation of single-case data files
print.sc

Print methods for scan objects
rci

Reliable change index
random_scdf

Single-case data generator
set_vars

Set analysis variables in an scdf
select_phases

Select and combine phases for overlap analyses
select_cases

Select a subset of cases
scdf

Single case data frame
sample_names

Samples random names
shift

Shift values in a single-case data file
scdf_attr

Set and get scdf attributes
smd

Standardized mean differences
shinyscan

A Shiny app for scan
scan-package

Single-Case Data Analyses
trend

Trend analysis for single-cases data
standardize

Standardize values of an scdf file
style_plot

(Deprecated) Create styles for single-case data plots
tau_u

Tau-U for single-case data
summary.scdf

Summary function for an scdf
moving_median

Transform every single case of a single case data frame
subset.scdf

Subset cases, rows, and variables
write_scdf

Data output
truncate_phase

Truncate single-case data
smooth_cases

Smoothing single-case data
$.scdf

Select an scdf
as_scdf

as_scdf
anova.sc_plm

ANOVA Table for Piecewise Linear Models
bplm

Bayesian Piecewise Linear Model
as.data.frame.scdf

Creating a long format data frame from several single-case data frames (scdf).
add_dummy_variables

Add Dummy Variables for Piecewise Linear Models
between_smd

Between-Case Standardized Mean Difference
batch_apply

Apply a function to each element in an scdf.
autocorr

Autocorrelation for single-case data
add_l2

Add level-2 data
estimate_design

Estimate single-case design
deprecated-functions

List of old deprecated function names
coef.sc_plm

Extract coefficients from plm/hplm objects
corrected_tau

Baseline corrected tau
describe

Descriptive statistics for single-case data
combine

Combine single-case data frames
.inheritParams

Dummy function to inherit global descriptions of parameters
design

Generate a single-case design matrix
convert

Convert
cdc

Conservative Dual-Criterion Method