Learn R Programming

scan (version 0.20)

overlapSC: Overlap indices for single-case data

Description

The overlapSC function provides the most common overlap indices for single-case data.

Usage

overlapSC(data, decreasing = FALSE)

Arguments

data

A single-case data frame or a list of single-case data frames. See makeSCDF to learn about this format.

decreasing

If you expect data to be lower in the B phase, set decreasing = TRUE. Default is decreasing = FALSE.

Value

overlap

A data frame consisting of the following indices for each single-case as well as the average for all cases: PND, PEM, PET, NAP, PAND, Tau-U.

Examples

Run this code
# NOT RUN {
## Display overlap indices for one single-case
overlapSC(Huitema2000, decreasing = TRUE)

## Display overlap indices for a list of six single-cases
describeSC(GruenkeWilbert2014)

## Write overlap indices to .csv-file
overl <- overlapSC(Waddell2011)
write.csv(overl$overlap, file = "overlap_indices.csv")
# }

Run the code above in your browser using DataLab