Xresids | R Documentation |
Generates a graph of the X-residuals for both mvdareg
and mvdapca
objects.
Xresids(object, ncomp = object$ncomp, conf = c(.95, .99), normalized = TRUE, verbose = FALSE)
object |
an object of class |
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 |
Xresids
is used to generates a graph of the X-residuals for both PLS and PCA models.
The output of Xresids
is a graph of X-residuals and a data frame listing the X-residuals values.
Nelson Lee Afanador (nelson.afanador@mvdalab.com)
MacGregor, Process Monitoring and Diagnosis by Multiblock PLS Methods, May 1994 Vol. 40, No. 5 AIChE Journal.
data(Penta) mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1], ncomp = 2, validation = "loo") Xresids(mod1, ncomp = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.