ABautoacf: Autocorrelation at any lag for a phase

Description Usage Arguments Author(s) References Examples

Description

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

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

Author(s)

Charles Auerbach, PhD & Wendy Zeitlin, PhD; Yeshiva University, Wurzweiler School of Social Work

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

Examples

1
2
3
4
cry<-c(3, 4, 2, 5, 3, 4, NA, 2, 2, 3, 2, 1, 2, NA, 2, 2, 1, 2, 1, 0, 0, 0)
pcry<-c("A", "A", "A", "A", "A", "A", NA, "B", "B", "B", "B", "B", "B",
NA, "B1", "B1", "B1", "B1", "B1", "B1", "B1", "B1")
ABautoacf(cry, pcry, "B", 2)


Search within the SSDforR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.