planecontrib {GDAtools} | R Documentation |
Contributions to a plane
Description
For a given plane of a MCA, computes contributions and squared cosines of the active variables and categories and of the active individuals.
Usage
planecontrib(resmca, axes = c(1,2))
Arguments
resmca |
object of class |
axes |
numeric vector of length 2, specifying the axes forming the plane to describe. Default is c(1,2). |
Value
A list of two lists. The first deals with variables :
ctr |
vector of contributions of the active categories to the plane |
cos2 |
vector of squared cosines of the active categories in the plane |
vctr |
vector of contributions of the active variables to the plane |
The second deals with observations :
ctr |
vector of contributions of the observations to the plane |
cos2 |
vector of squared cosines of the observations in the plane |
Author(s)
Nicolas Robette
References
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).
See Also
Examples
data(Music)
junk <- c("FrenchPop.NA","Rap.NA","Jazz.NA","Classical.NA","Rock.NA")
mca <- speMCA(Music[,1:5], excl = junk)
co <- planecontrib(mca)
co$var