Title: | Control Qualitative Variables |
---|---|
Description: | Covers k-table control analysis using multivariate control charts for qualitative variables using fundamentals of multiple correspondence analysis and multiple factor analysis. The graphs can be shown in a flat or interactive way, in the same way all the outputs can be shown in an interactive shiny panel. |
Authors: | Wilson Rojas-Preciado [aut, cre], Mauricio Rojas-Campuzano [aut, ctb], Purificación Galindo-Villardón [aut, ctb], Omar Ruiz-Barzola [aut, ctb] |
Maintainer: | Wilson Rojas-Preciado <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.2.0 |
Built: | 2025-03-01 03:21:14 UTC |
Source: | https://github.com/cran/T2Qv |
Multiple correspondence analysis applied to a concatenated table.
ACMconcatenated(base, IndK, interactive = FALSE)
ACMconcatenated(base, IndK, interactive = FALSE)
base |
Data set |
IndK |
Character with the name of the column that specifies the partition of the data set in k tables. |
interactive |
If it is TRUE, the graph will be shown interactively. If FALSE, the graph is displayed flat. FALSE is the default. |
A Multiple Correspondence Analysis graph of the concatenated table.
data(Datak10Contaminated) ACMconcatenated(Datak10Contaminated,"GroupLetter", interactive = FALSE)
data(Datak10Contaminated) ACMconcatenated(Datak10Contaminated,"GroupLetter", interactive = FALSE)
Multiple correspondence analysis applied to a specific table.
ACMpoint(base, IndK, PointTable, interactive = FALSE)
ACMpoint(base, IndK, PointTable, interactive = FALSE)
base |
Data set |
IndK |
Character with the name of the column that specifies the partition of the data set in k tables. |
PointTable |
Table indicator. A character or number that is part of the |
interactive |
If it is TRUE, the graph will be shown interactively. If FALSE, the graph is displayed flat. FALSE is the default. |
A Multiple Correspondence Analysis graph of the table specified in PointTable
.
data(Datak10Contaminated) ACMpoint(Datak10Contaminated,"GroupLetter", PointTable="j", interactive=FALSE)
data(Datak10Contaminated) ACMpoint(Datak10Contaminated,"GroupLetter", PointTable="j", interactive=FALSE)
Contains Chi square distance between the column masses of the table specified in PointTable
and the concatenated table. It allows to identify which mode is responsible for the anomaly in the table in which it is located.
ChiSq_variable(base, IndK, PointTable, interactive = FALSE, ylim = 0.09)
ChiSq_variable(base, IndK, PointTable, interactive = FALSE, ylim = 0.09)
base |
Data set |
IndK |
Character with the name of the column that specifies the partition of the data set in k tables. |
PointTable |
Table indicator. A character or number that is part of the |
interactive |
If it is TRUE, the graph will be shown interactively. If FALSE, the graph is displayed flat. FALSE is the default. |
ylim |
y-axis limit. |
A table with Chi square distances between the column masses of the table specified in PointTable
and the concatenated table.
data(Datak10Contaminated) ChiSq_variable(Datak10Contaminated, "GroupLetter", PointTable="j", ylim=5)
data(Datak10Contaminated) ChiSq_variable(Datak10Contaminated, "GroupLetter", PointTable="j", ylim=5)
Data from 10 tables with 10 categorical variables, the data from table 10 was generated with a different distribution from the others.
Datak10Contaminated
Datak10Contaminated
A data frame:
Contains 3 modes "High", "Medium", "Low".
Contains 3 modes "High", "Medium", "Low".
Contains 3 modes "High", "Medium", "Low".
Contains 3 modes "High", "Medium", "Low".
Contains 3 modes "High", "Medium", "Low".
Contains 3 modes "High", "Medium", "Low".
Contains 3 modes "High", "Medium", "Low".
Contains 3 modes "High", "Medium", "Low".
Contains 3 modes "High", "Medium", "Low".
Contains 3 modes "High", "Medium", "Low".
Letters from "a" to "j" identify the k tables.
A shiny panel complete with the multivariate control chart for qualitative variables, the two ACM charts and the modality distance table. Within the dashboard, arguments such as type I error and dimensionality can be modified.
Full_Panel(base, IndK)
Full_Panel(base, IndK)
base |
Data set |
IndK |
Character with the name of the column that specifies the partition of the data set in k tables. |
A complete panel with the multivariate control chart for qualitative variables, the two ACM charts and the modality distance table.
## Not run: data(Datak10Contaminated) Full_Panel(Datak10Contaminated, "GroupLetter") ## End(Not run)
## Not run: data(Datak10Contaminated) Full_Panel(Datak10Contaminated, "GroupLetter") ## End(Not run)
Multivariate control chart T2 Hotelling applicable for qualitative variables.
T2_qualitative(base, IndK, dim, interactive = FALSE, alpha = 0.0027)
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)
data(Datak10Contaminated) T2_qualitative(Datak10Contaminated,"GroupLetter",9, FALSE,0.0027)