Generates a Graph of the X-residuals

Share:

Description

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

Usage

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

Arguments

object

an object of class mvdareg or mvdapca.

ncomp

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

conf

for a bootstrapped model, the confidence level to use.

normalized

should residuals be normalized

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

1
2
3
4
5
6
data(Penta)
## Number of bootstraps set to 500 to demonstrate flexibility
## Use a minimum of 1000 (default) for results that support bootstraping
mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1], 
               ncomp = 2, validation = "oob", boots = 500)
Xresids(mod1, ncomp = 2)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.