View source: R/T2_qualitative.R
T2_qualitative | R Documentation |
Multivariate control chart T2 Hotelling applicable for qualitative variables.
T2_qualitative(base, IndK, dim, interactive = FALSE, alpha = 0.0027)
base |
Data set |
IndK |
Character with the name of the column that specifies the partition of the data set in k tables. |
dim |
Dimension taken for reduction. Initial dimension - 1 is recommended. |
interactive |
If it is TRUE, the graph will be shown interactively. If FALSE, the graph is displayed flat. FALSE is the default. |
alpha |
Type I error, it is recommended to reach this value by using the ARL. |
A control chart made with the T2 hotelling statistic, applied to detect anomalies in any of the K tables obtained with the specification of IndK
. The control limit of the graph is obtained from the number of dimensions dim
and the type I error alpha
.
data(Datak10Contaminated) T2_qualitative(Datak10Contaminated,"GroupLetter",9, FALSE,0.0027)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.