acfplot: Plot of Auto-correlation Funcion

View source: R/acfplot.R

acfplotR Documentation

Plot of Auto-correlation Funcion

Description

This function computes the autocorrelation function estimates for a selected parameter.

Usage

acfplot(object, parm = NULL)

Arguments

object

an object of class mvdareg, i.e., plsFit.

parm

a chosen predictor variable; if NULL a random predictor variable is chosen

Details

This function computes the autocorrelation function estimates for a selected parameter, via acf, and generates a graph that allows the analyst to assess the need for an autocorrelation adjustment in the smc.

Author(s)

Nelson Lee Afanador (nelson.afanador@mvdalab.com)

References

This function is built using the acf function in the stats R package.

Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth Edition. Springer-Verlag.

See Also

smc, smc.acfTest

Examples

data(Penta)
mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1],
               ncomp = 2, validation = "loo")
acfplot(mod1, parm = NULL)

mvdalab documentation built on Oct. 6, 2022, 1:05 a.m.