T2 | R Documentation |
Generates a Hotelling's T2 Graph both mvdareg
and mvdapca
objects.
T2(object, ncomp = object$ncomp, phase = 1, conf = c(.95, .99), verbose = FALSE)
object |
an object of class |
ncomp |
the number of components to include in the calculation of Hotelling's T2. |
phase |
designates whether the confidence limits should reflect the current data frame, |
conf |
the confidence level(s) to use for upper control limit. |
verbose |
output results as a data frame |
T2
is used to generates a Hotelling's T2 graph both PLS and PCA models.
The output of T2
is a graph of Hotelling's T2 and a data frame listing the T2 values.
Nelson Lee Afanador (nelson.afanador@mvdalab.com)
Hotelling, H. (1931). "The generalization of Student's ratio". Annals of Mathematical Statistics 2 (3): 360:378.
data(Penta) mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1], ncomp = 2, validation = "loo") T2(mod1, ncomp = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.