# overlapSC: Overlap indices for single-case data In scan: Single-Case Data Analyses for Single and Multiple Baseline Designs

## Description

The `overlapSC` function provides the most common overlap indices for single-case data and some additional statistics.

## Usage

 `1` ```overlapSC(data, decreasing = FALSE, phases = c("A", "B")) ```

## Arguments

 `data` A single-case data frame. See `scdf` to learn about this format. `decreasing` If you expect data to be lower in the B phase, set `decreasing = TRUE`. Default is `decreasing = FALSE`. `phases` A vector of two characters or numbers indicating the two phases that should be compared. E.g., `phases = c("A","C")` or `phases = c(2,4)` for comparing the second to the fourth phase. Phases could be combined by providing a list with two elements. E.g., ```phases = list(A = c(1,3), B = c(2,4))``` will compare phases 1 and 3 (as A) against 2 and 4 (as B). Default is `phases = c("A","B")`.

## Value

 `overlap` A data frame consisting of the following indices for each single-case for all cases: PND, PEM, PET, NAP, PAND, Tau-U (A vs. B - Trend A), Diff_mean, Diff_trend, SMD.

Juergen Wilbert

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10 11 12``` ```## Display overlap indices for one single-case overlapSC(Huitema2000, decreasing = TRUE) ## Display overlap indices for six single-cases overlapSC(GruenkeWilbert2014) ## Combining phases for analyszing designs with more than two phases overlapSC(exampleA1B1A2B2, phases = list(c("A1","A2"), c("B1","B2"))) ## Write overlap indices to .csv-file overl <- overlapSC(Waddell2011) write.csv(overl\$overlap, file = "overlap_indices.csv") ```

scan documentation built on April 12, 2018, 3 p.m.