Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Author(s)

Juergen Wilbert

See Also

Examples

## 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")

## End(Not run)

scan

Single-Case Data Analyses for Single and Multiple Baseline Designs

v0.51
GPL
Authors
Juergen Wilbert [aut, cre], Timo Lueke [aut]
Initial release
2021-2-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.