This function tests for autocorrelation for any lag. Should be used with samples greater than or equal to six. Also produces significance graph for lags. The Box-Ljung test of significance is performed for all lags up to and including the specified one.
Usage
ABautoacf(behavior, phaseX, v, l)
Arguments
behavior
behavior variable
phaseX
phase variable
v
letter for phase tested (e.g., "A")
l
number of lags (e.g. 1, 2, 3)
References
Go to www.ssdanalysis.com for more information.
Auerbach, Charles, and Zeitlin Wendy. SSD for R: An R Package for Analyzing Single-Subject Data. Oxford University Press, 2014. p42 ,p141