T2_qualitative: Multivariate control chart for qualitative variables

View source: R/T2_qualitative.R

T2_qualitativeR Documentation

Multivariate control chart for qualitative variables

Description

Multivariate control chart T2 Hotelling applicable for qualitative variables.

Usage

T2_qualitative(base, IndK, dim, interactive = FALSE, alpha = 0.0027)

Arguments

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.

Value

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.

Examples

data(Datak10Contaminated)
T2_qualitative(Datak10Contaminated,"GroupLetter",9, FALSE,0.0027)

JavierRojasC/T2Qv documentation built on May 12, 2022, 8:07 a.m.