powered by
Generates a Hotelling's T2 Graph both mvdareg and mvdapca objects.
mvdareg
mvdapca
T2(object, ncomp = object$ncomp, phase = 1, conf = c(.95, .99), verbose = FALSE)
an object of class mvdareg or mvdapca.
the number of components to include in the calculation of Hotelling's T2.
designates whether the confidence limits should reflect the current data frame, phase = 1 or future observations, phase = 2.
phase = 1
phase = 2
the confidence level(s) to use for upper control limit.
output results as a data frame
The output of T2 is a graph of Hotelling's T2 and a data frame listing the T2 values.
T2
T2 is used to generates a Hotelling's T2 graph both PLS and PCA models.
Hotelling, H. (1931). "The generalization of Student's ratio". Annals of Mathematical Statistics 2 (3): 360:378.
# NOT RUN { data(Penta) mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1], ncomp = 2, validation = "loo") T2(mod1, ncomp = 2) # }
Run the code above in your browser using DataLab