Learn R Programming

scan (version 0.53)

describe: Descriptive statistics for single-case data

Description

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

Usage

describe(data, dvar, pvar, mvar)

describeSC(...)

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.

...

Further arguments passed to the function.

Value

A list containing a data frame of descriptive statistics (descriptives); the cse design (design); the number of cases (N)

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).

See Also

overlap, plot.scdf

Examples

Run this code
# NOT RUN {
## 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())
# }

Run the code above in your browser using DataLab