mca | R Documentation |
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
rs |
The coordinates of the rows, in |
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 |
p |
The number of factors |
d |
The singular values for the |
call |
The matched call. |
Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.
predict.mca
, plot.mca
, corresp
farms.mca <- mca(farms, abbrev=TRUE)
farms.mca
plot(farms.mca)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.