Learn R Programming

scan (version 0.20)

describeSC: Descriptive statistics for single-case data

Description

The describeSC function provides common descriptive statistics for single-case data.

Usage

describeSC(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 phase B, set decreasing = TRUE. At the moment describeSC only reports indices not sensible to decreasing phase B scores, so this does not change the output.

Value

A data frame (or a list of data frames) of descriptive statistics (for each single-case), i.a.: number of observations, number of missing values, measures of central tendency and variation, trend, SMD.

See Also

overlapSC, plotSC, writeSC

Examples

Run this code
# NOT RUN {
## Descriptive statistics for one single-case
describeSC(Waddell2011)

## Descriptive statistics for a list of three single-cases
describeSC(Grosche2011)

## Write descriptive statistics to .csv-file
study <- describeSC(Waddell2011)
write.csv(study$descriptives, file = "descriptives.csv")
# }

Run the code above in your browser using DataLab