ABautopacf: Partial autocorrelation

View source: R/ABautopacf.R

ABautopacfR Documentation

Partial autocorrelation

Description

This function tests for partial 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

ABautopacf(behavior, phaseX, v, lags)

Arguments

behavior

behavior variable

phaseX

phase variable

v

letter for phase being tested (e.g.,"A")

lags

number of lags (e.g., 1, 2, 3)

Author(s)

Charles Auerbach, PhD Wurzweiler School of Social Work Wendy Zeitlin, PhD Montclair State University

References

Go to www.ssdanalysis.com for more information.

Examples

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")
ABautopacf (cry, pcry,"A", 3)

SSDforR documentation built on Nov. 24, 2023, 5:08 p.m.

Related to ABautopacf in SSDforR...