Computes a multiple correspondence analysis.
Usage
mca(object, ...)
# S4 method for class 'data.frame'
mca(
object,
rank = NULL,
sup_row = NULL,
sup_col = NULL,
sup_quanti = NULL,
autodetect = FALSE
)
# S4 method for class 'matrix'
mca(object, rank = NULL, sup_row = NULL, sup_col = NULL)
Arguments
- object
A \(m \times p\)
numeric
matrix
or adata.frame
.- ...
Currently not used.
- rank
An
integer
value specifying the maximal number of components to be kept in the results. IfNULL
(the default), \(min(m, p) - 1\) components will be returned.- sup_row
A
vector
specifying the indices of the supplementary rows.- sup_col
A
vector
specifying the indices of the supplementary categorical columns.- sup_quanti
A
vector
specifying the indices of the supplementary quantitative columns.- autodetect
A
logical
scalar: should numeric variables be automatically removed (exceptsup_quanti
)?
Value
A MCA
object.