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 piecewise linear regression models, multilevel models, overlap indices ('PND', 'PEM', 'PAND', 'PET', 'tau-u', 'baseline corrected tau', 'CDC'), and randomization tests. Data preparation functions support outlier detection, handling missing values, scaling, truncation, rank transformation, and smoothing. An export function helps to generate html and latex tables in a publication friendly style.

More details can be found at https://jazznbass.github.io/scan-Book/.

Copy Link

Version

Install

install.packages('scan')

Monthly Downloads

613

Version

0.65.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Juergen Wilbert

Last Published

June 29th, 2025

Functions in scan (0.65.0)

combine

Combine single-case data frames
corrected_tau

Baseline corrected tau
.inheritParams

Dummy function to inherit global descriptions of parameters
cdc

Conservative Dual-Criterion Method
deprecated-functions

List of old deprecated function names
estimate_design

Estimate single-case design
convert

Convert
coef.sc_plm

Extract coefficients from plm/hplm objects
fill_missing

Replacing missing measurement times in single-case data
export

Export scan objects to html or latex
hplm

Hierarchical piecewise linear model / piecewise regression
is.scdf

scdf objects Tests for objects of type "scdf"
design

Generate a single-case design matrix
fetch

Fetches elements from scan objects Getter function for scan objects
describe

Descriptive statistics for single-case data
mplm

Multivariate Piecewise linear model / piecewise regression
ird

IRD - Improvement rate difference
example_data

Single-case example data
na.omit.scdf

scdf objects Removes any row with a missing value
nap

Nonoverlap of all Pairs
plm

Piecewise linear model / piecewise regression
plot.scdf

(Deprecated) Plot single-case data
%>%

Pipe
pet

Percent exceeding the trend
pnd

Percentage of non-overlapping data
plot_rand

Plot random distribution
overlap

Overlap indices for single-case data
outlier

Handling outliers in single-case data
print.scdf

Print an scdf
power_test

Empirical power analysis for single-case data
sample_names

Samples random names
rci

Reliable change index
read_scdf

Load single-case data from files
print.sc

Print methods for scan objects
rescale

Rescales values of an scdf file
pand

Percentage of all non-overlapping data
random_scdf

Single-case data generator
pem

Percent exceeding the median
ranks

(Deprecated) Rank-transformation of single-case data files
rand_test

Randomization Tests for single-case data
scdf_attr

Set and get scdf attributes
smd

Standardized mean differences
select_phases

Select and combine phases for overlap analyses
select_cases

Select a subset of cases
scan-package

Single-Case Data Analyses
scdf

Single case data frame
shinyscan

A Shiny app for scan
smooth_cases

Smoothing single-case data
shift

Shift values in a single-case data file
set_vars

Set analysis variables in an scdf
standardize

Standardize values of an scdf file
write_scdf

Data output
trend

Trend analysis for single-cases data
tau_u

Tau-U for single-case data
style_plot

(Deprecated) Create styles for single-case data plots
subset.scdf

Subset cases, rows, and variables
moving_median

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

Summary function for an scdf
truncate_phase

Truncate single-case data
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
as_scdf

as_scdf
anova.sc_plm

ANOVA Table for Piecewise Linear Models
batch_apply

Apply a function to each element in an scdf.
bplm

Bayesian Piecewise Linear Model
$.scdf

Select an scdf
autocorr

Autocorrelation for single-case data
add_l2

Add level-2 data