describe {scan} | R Documentation |
Descriptive statistics for single-case data
Description
The describe()
function provides common descriptive statistics for
single-case data.
Usage
describe(data, dvar, pvar, mvar)
Arguments
data |
A single-case data frame. See |
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. |
Details
n = number of measurements; mis = number of missing vaues; m = mean; md = median; sd = standard deviation; mad = median average deviation; min = minimum; max = maximum; trend = weight of depended variable regressed on time (values ~ mt).
Value
A list containing a data frame of descriptive statistics (descriptives); the cse design (design); the number of cases (N)
Author(s)
Juergen Wilbert
See Also
Examples
## Descriptive statistics for a study of three single-cases
describe(Grosche2011)
## Descriptives of a three phase design
describe(exampleABC)
## Write descriptive statistics to .csv-file
study <- describe(Waddell2011)
write.csv(study$descriptives, file = tempfile())