Xresids: Generates a Graph of the X-residuals

Description Usage Arguments Details Value Author(s) References Examples

View source: R/Xresids.R

Description

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

Usage

1
2
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 ([email protected])

References

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

Examples

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

mvdalab documentation built on Nov. 17, 2017, 6 a.m.