Learn R Programming

scan (version 0.51)

describeSC: Descriptive statistics for single-case data

Description

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

Usage

describeSC(data, dvar, pvar, mvar)

Arguments

data

A single-case data frame. See scdf to learn about this format.

dvar

Character string with the name of the dependent variable. Defaults to the attributes in the scdf file.

pvar

Character string with the name of the phase variable. Defaults to the attributes in the scdf file.

mvar

Character string with the name of the measurement time variable. Defaults to the attributes in the scdf file.

Value

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

See Also

overlapSC, plotSC

Examples

Run this code
# NOT RUN {

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

## Descriptives of a three phase design
describeSC(exampleABC)

# }
# NOT RUN {
## 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