describeSC: Descriptive statistics for single-case data

Description Usage Arguments Value Author(s) See Also Examples

View source: R/describeSC.R

Description

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

Usage

1
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

overlapSC, plotSC

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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 documentation built on Feb. 12, 2021, 3:01 a.m.