powered by
Generates a graph of the X-residuals for both mvdareg and mvdapca objects.
mvdareg
mvdapca
Xresids(object, ncomp = object$ncomp, conf = c(.95, .99), normalized = TRUE, verbose = FALSE)
The output of Xresids is a graph of X-residuals and a data frame listing the X-residuals values.
Xresids
an object of class mvdareg or mvdapca.
the number of components to include in the calculation of the X-residuals.
the confidence level(s) to use for upper control limit.
should residuals be normalized
output results as a data frame
Nelson Lee Afanador (nelson.afanador@mvdalab.com)
Xresids is used to generates a graph of the X-residuals for both PLS and PCA models.
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)
Run the code above in your browser using DataLab