Computes a multiple correspondence analysis of a set of factors.
USAGE:
mca(df, nf = 2, abbrev = F)
REQUIRED ARGUMENTS:
df
A data frame containing only factors
OPTIONAL ARGUMENTS:
nf
The number of dimensions for the MCA. Rarely 3 might be useful.
abbrev
Should the vertex names be abbreviated? By default these are of the
form
factor.level but if
abbrev=T they are just
level which will suffice if the factors
have distinct levels.
VALUE:
An object of class
"mca", with components
rs
The coordinates of the rows, in
nf dimensions.
cs
The coordinates of the column vertices, one for each level of each factor.
fs
Weights for each row, used to interpolate additional factors in
predict.mca.