MCAvariants: Classic and Ordered Multiple Correspondence Analysis

View source: R/MCAvariants.R

MCAvariantsR Documentation

Classic and Ordered Multiple Correspondence Analysis

Description

It performs Classic Multiple Correspondence analysis for nominal variables (setting catype = "mca") and Ordered Multiple Correspondence analysis via orthogonal polynomials (setting catype="omca"). When the categorical variables are nominal and ordinal, you can specify writing FALSE or TRUE in the input parameter vordered.

Usage

MCAvariants(Xtable, catype = "omca", np = 5, vordered=c(TRUE,TRUE,TRUE,TRUE,TRUE)) 

Arguments

Xtable

The two-way contingency table.

catype

The input parameter for specifying what variant of multiple correspondence analysis is considered. By default, catype = "mca".

np

The input parameter for specifying the number of categorical variables. By default, np = 5.

vordered

The flag parameter for specifying what variable is ordered, the ordered variables should be in column close each other. By default, all the five variables are ordered: vordered = c(TRUE,TRUE,TRUE,TRUE,TRUE).

Value

Description of the output returned

Xtable

The starting table of variables in reduced (primitive) code.

rows

The row number of the starting table.

cols

The column number of the starting table (coincident with the variable number).

rowlabels

The label of the row individuals.

columnlabels

The label of the column variable categories.

Rprinccoord

The coordinates of individuals.

Cprinccoord

The category variable coordinates.

inertiaXsum

The total inertia when multiple correspondence analysis is performed on the indicator table.

inertiaBurtsum

The total inertia when multiple correspondence analysis is performed on the Burt table.

inertias

Benzecri's Adjusted Inertia values, percentages and cumulative values.

inertiasAdjusted

The adjusted inertia values.

catype

The kind of multiple correspondence analysis chosen, classical or ordered, that is catype is “mca” or “omca”.

printdims

The dimension of a matrix in print. By default it is equal to 3.

comp

The polynomial components of inertia when catype is “omca”. The total inertia is partitioned in terms of polynomial components.

componentpvalue1

The p-value of the polynomial components of total inertia, when catype is “omca”.

degreef

The degree of freedom of polynomial components of total inertia when, catype is “omca”.

Note

This function recalls internally two other functions, depending on the setting of the input parameter catype, it recalls multiple correspondence analysis or ordered multiple correspondence analysis. It gives the output object necessary for printing and plotting the results. These two important functions are print.MCAvariants and plot.MCAvariants.

Author(s)

Rosaria Lombardo and Eric J Beh

References

Lombardo R and Meulman JJ (2010) Journal of Classification, 27, 191-210.
Beh EJ Lombardo R (2014) Correspondence Analysis, Theory, Practice and New Strategies. Wiley


MCAvariants documentation built on Aug. 21, 2023, 5:09 p.m.