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

775

Version

0.64.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Juergen Wilbert

Last Published

March 19th, 2025

Functions in scan (0.64.0)

corrected_tau

Baseline corrected tau
combine

Combine single-case data frames
estimate_design

Estimate single-case design
deprecated-functions

List of old deprecated function names
describe

Descriptive statistics for single-case data
coef.sc_plm

Extract coefficients from plm/hplm objects
cdc

Conservative Dual-Criterion Method
convert

Convert
.inheritParams

Dummy function to inherit global descriptions of parameters
design

Generate a single-case design matrix
fetch

Fetches elements from scan objects Getter function for scan objects
fill_missing

Replacing missing measurement times in single-case data
is.scdf

scdf objects Tests for objects of type "scdf"
hplm

Hierarchical piecewise linear model / piecewise regression
na.omit.scdf

scdf objects Removes any row with a missing value
mplm

Multivariate Piecewise linear model / piecewise regression
export

Export scan objects to html or latex
example_data

Single-case example data
nap

Nonoverlap of all Pairs
ird

IRD - Improvement rate difference
pand

Percentage of all non-overlapping data
plot_rand

Plot random distribution
plm

Piecewise linear model / piecewise regression
pnd

Percentage of non-overlapping data
overlap

Overlap indices for single-case data
pet

Percent exceeding the trend
%>%

Pipe
outlier

Handling outliers in single-case data
pem

Percent exceeding the median
plot.scdf

(Deprecated) Plot single-case data
print.sc_plm

Print methods for scan objects
power_test

Empirical power analysis for single-case data
sample_names

Samples random names
rci

Reliable change index
rescale

Rescales values of an scdf file
read_scdf

Load single-case data from files
rand_test

Randomization Tests for single-case data
print.scdf

Print an scdf
ranks

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

Single case data frame
random_scdf

Single-case data generator
set_vars

Set analysis variables in an scdf
select_phases

Select and combine phases for overlap analyses
scan-package

Single-Case Data Analyses
shinyscan

A Shiny app for scan
shift

Shift values in a single-case data file
smooth_cases

Smoothing single-case data
smd

Standardized mean differences
select_cases

Select a subset of cases
scdf_attr

Set and get scdf attributes
trend

Trend analysis for single-cases data
truncate_phase

Truncate single-case data
tau_u

Tau-U for single-case data
moving_median

Transform every single case of a single case data frame
write_scdf

Data output
subset.scdf

Subset cases, rows, and variables
standardize

Standardize values of an scdf file
style_plot

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

Summary function for an scdf
$.scdf

Select an scdf
between_smd

Between-Case Standardized Mean Difference
autocorr

Autocorrelation for 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
bplm

Bayesian Piecewise Linear Model
batch_apply

Apply a function to each element in an scdf.
anova.sc_plm

ANOVA Table for Piecewise Linear Models
add_l2

Add level-2 data
as_scdf

as_scdf