Learn R Programming

mvdalab (version 1.7)

acfplot: 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

Author

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

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.

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

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

Run the code above in your browser using DataLab