Description Usage Arguments Value Author(s) See Also Examples
The autocorrSC function calculates autocorrelations within each phase and across all phases.
1 | autocorrSC(data, dvar, pvar, mvar, lag.max = 3, ...)
|
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. |
lag.max |
The lag up to which autocorrelations will be computed.
Default is |
... |
Further arguments passed to the |
A data frame containing separate autocorrelations for each
phase and for all phases (for each single-case). If lag.max
exceeds
the length of a phase minus one, NA is returned for this cell.
Juergen Wilbert
1 2 | ## Compute autocorrelations for a list of four single-cases up to lag 2.
autocorrSC(Huber2014, lag.max = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.