autocorrSC: Autocorrelation for single-case data

Description Usage Arguments Value Author(s) See Also Examples

View source: R/autocorrSC.R

Description

The autocorrSC function calculates autocorrelations within each phase and across all phases.

Usage

1
autocorrSC(data, lag.max = 3)

Arguments

data

A single-case data frame or a list of single-case data frames. See scdf to learn about this format.

lag.max

The lag up to which autocorrelations will be computed. Default is lag.max = 3.

Value

autocorr

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.

Author(s)

Juergen Wilbert

See Also

trendSC, plm, hplm

Examples

1
2
## Compute autocorrelations for a list of four single-cases with max.lag = 2
autocorrSC(Huber2014, lag.max = 2)

scan documentation built on Nov. 17, 2017, 2:13 p.m.