mca.Rd
Computes a multiple correspondence analysis of a set of factors.
mca(df, nf = 2, abbrev = FALSE)
df | A data frame containing only factors |
---|---|
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 |
An object of class "mca"
, with components
The coordinates of the rows, in nf
dimensions.
The coordinates of the column vertices, one for each level of each factor.
Weights for each row, used to interpolate additional factors in predict.mca
.
The number of factors
The singular values for the nf
dimensions.
The matched call.
Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.
farms.mca <- mca(farms, abbrev=TRUE) farms.mca#> Call: #> mca(df = farms, abbrev = TRUE) #> #> Multiple correspondence analysis of 20 cases of 4 factors #> #> Correlations 0.806 0.745 cumulative % explained 26.87 51.71plot(farms.mca)