dimcontrib | R Documentation |
Identifies the categories and individuals that contribute the most to each dimension obtained by a Multiple Correspondence Analysis.
dimcontrib(resmca, dim = c(1,2), best = TRUE)
resmca |
object of class |
dim |
numerical vector of the dimensions to describe (default is c(1,2)) |
best |
logical. If FALSE, displays all the categories. If TRUE (default), displays only categories and individuals with contributions higher than average |
Contributions are sorted and assigned a positive or negative sign according to the corresponding categories or individuals coordinates, so as to facilitate interpretation.
Returns a list with the following items :
var |
a list of categories contributions to axes |
ind |
a list of individuals contributions to axes |
Nicolas Robette
Le Roux B. and Rouanet H., Multiple Correspondence Analysis, SAGE, Series: Quantitative Applications in the Social Sciences, Volume 163, CA:Thousand Oaks (2010).
Le Roux B. and Rouanet H., Geometric Data Analysis: From Correspondence Analysis to Stuctured Data Analysis, Kluwer Academic Publishers, Dordrecht (June 2004).
tabcontrib
, dimdescr
, dimeta2
, dimtypicality
# specific MCA on Music example data set
data(Music)
junk <- c("FrenchPop.NA", "Rap.NA", "Rock.NA", "Jazz.NA", "Classical.NA")
mca <- speMCA(Music[,1:5], excl = junk)
# contributions to axes 1 and 2
dimcontrib(mca)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.