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

516

Version

0.65.1

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Juergen Wilbert

Last Published

July 13th, 2025

Functions in scan (0.65.1)

fetch

Fetches elements from scan objects Getter function for scan objects
is.scdf

scdf objects Tests for objects of type "scdf"
estimate_design

Estimate single-case design
na.omit.scdf

scdf objects Removes any row with a missing value
nap

Nonoverlap of all Pairs
hplm

Hierarchical piecewise linear model / piecewise regression
ird

IRD - Improvement rate difference
example_data

Single-case example data
export

Export scan objects to html or latex
plot_rand

Plot random distribution
pnd

Percentage of non-overlapping data
plm

Piecewise linear model / piecewise regression
plot.scdf

(Deprecated) Plot single-case data
random_scdf

Single-case data generator
ranks

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

Samples random names
fill_missing

Replacing missing measurement times in single-case data
overlap

Overlap indices for single-case data
rci

Reliable change index
rand_test

Randomization Tests for single-case data
pet

Percent exceeding the trend
print.scdf

Print an scdf
mplm

Multivariate Piecewise linear model / piecewise regression
pand

Percentage of all non-overlapping data
%>%

Pipe
shinyscan

A Shiny app for scan
read_scdf

Load single-case data from files
rescale

Rescales values of an scdf file
outlier

Handling outliers in single-case data
select_phases

Select and combine phases for overlap analyses
scdf_attr

Set and get scdf attributes
shift

Shift values in a single-case data file
select_cases

Select a subset of cases
standardize

Standardize values of an scdf file
style_plot

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

Transform every single case of a single case data frame
tau_u

Tau-U for single-case data
truncate_phase

Truncate single-case data
trend

Trend analysis for single-cases data
scdf

Single case data frame
set_vars

Set analysis variables in an scdf
subset.scdf

Subset cases, rows, and variables
summary.scdf

Summary function for an scdf
scan-package

Single-Case Data Analyses
power_test

Empirical power analysis for single-case data
pem

Percent exceeding the median
smd

Standardized mean differences
write_scdf

Data output
smooth_cases

Smoothing single-case data
print.sc

Print methods for scan objects
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
as_scdf

as_scdf
between_smd

Between-Case Standardized Mean Difference
$.scdf

Select an scdf
add_dummy_variables

Add Dummy Variables for Piecewise Linear Models
combine

Combine single-case data frames
describe

Descriptive statistics for single-case data
corrected_tau

Baseline corrected tau
as.data.frame.scdf

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

Dummy function to inherit global descriptions of parameters
cdc

Conservative Dual-Criterion Method
add_l2

Add level-2 data
autocorr

Autocorrelation for single-case data
design

Generate a single-case design matrix
deprecated-functions

List of old deprecated function names
coef.sc_plm

Extract coefficients from plm/hplm objects
convert

Convert