T2_Categorical: Multivariate control chart for categorical variables

Description Usage Arguments Value Examples

View source: R/T2_Categorical.R

Description

Multivariate control chart T2 Hotelling applicable for categorical variables.

Usage

1
T2_Categorical(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

1
2

JavierRojasC/ControlCat documentation built on Dec. 18, 2021, 12:34 a.m.