At my work we do a lot of control charts for n
variables for monitoring multivariate measurement processes. I am trying to implement Hotelling multivariate control charts so we can consider the correlation between variables and assess when a sample has gone out-of-control. The package MSQC has the function mult.chart
to achieve this easily. The function returns some information about the data, the plot of the control chart including limits and additionally, when a sample has gone out-of-control, it decomposes it so is possible to determine which variable (or variables) are the responsible for the shift and the information is given as a list. I cannot to determine how to extract that information since the structure of the return does not follow the traditional form of name_of_data_frame$name_of_variable_of_interest, at leasts for the decomposition matrix.
library(MSQC)
data("carbon1")
Xmv <- mult.chart(carbon1, type = "t2") $Xmv
S <- mult.chart(carbon1, type = "t2") $covariance
colm<-nrow(carbon1)
#Phase II
data("carbon2")
Hot<-mult.chart(carbon2, type = "t2", Xmv = Xmv, S = S, colm = colm)
The following(s) point(s) fall outside of the control limits[1] 4
$`Decomposition of`
[1] 4
I tried str(Hot)
but the part of $`Decomposition of` does not appear. How can I get this kind of information?