powered by
Mahalanobis \(T^2\) and Confidence Region
mahalanobisT2(x, factor.name, response.names = names(x)[!names(x) %in% factor.name], conf.level=0.95, compare.to = NA, plot = FALSE)
a list with components:
matrix with transformed coordinates of variables in response.names
response.names
vector containing Lower Control Region, Center and Upper Control Region of Mahalanobis \(T^2\)
single value, Mahalanobis \(T^2\) of compare.to
compare.to
a data frame
single character indicating column name of the experiment factor to test, the first level is used as a reference
vector of characters indicating columns names of the responses
confidence level for the Confidence Region
a vector of length length(response.names) to be compared to the result in terms of Mahalanobis \(T^2\)
length(response.names)
logical, if TRUE also a plot is produced
TRUE
Daniele Amberti
Kenett, R., Zacks, S. with contributions by Amberti, D. Modern Industrial Statistics: with applications in R, MINITAB and JMP. Wiley.
Tsong et al, (1996).
data(DISS) mahalanobisT2(DISS[, c("batch", "min15", "min90")], factor.name="batch", conf.level=0.90, compare.to=c(15, 15))
Run the code above in your browser using DataLab