Xresids: Generates a Graph of the X-residuals

XresidsR Documentation

Generates a Graph of the X-residuals

Description

Generates a graph of the X-residuals for both mvdareg and mvdapca objects.

Usage

Xresids(object, ncomp = object$ncomp, conf = c(.95, .99),
        normalized = TRUE, verbose = FALSE)

Arguments

object

an object of class mvdareg or mvdapca.

ncomp

the number of components to include in the calculation of the X-residuals.

conf

the confidence level(s) to use for upper control limit.

normalized

should residuals be normalized

verbose

output results as a data frame

Details

Xresids is used to generates a graph of the X-residuals for both PLS and PCA models.

Value

The output of Xresids is a graph of X-residuals and a data frame listing the X-residuals values.

Author(s)

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

References

MacGregor, Process Monitoring and Diagnosis by Multiblock PLS Methods, May 1994 Vol. 40, No. 5 AIChE Journal.

Examples

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

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