planecontrib.Rd
For a given plane of a MCA, computes contributions and squared cosines of the active variables and categories and of the active individuals.
planecontrib(resmca, axes = c(1,2))
object of class MCA
, speMCA
or csMCA
numeric vector of length 2, specifying the axes forming the plane to describe. Default is c(1,2).
A list of two lists. The first deals with variables :
vector of contributions of the active categories to the plane
vector of squared cosines of the active categories in the plane
vector of contributions of the active variables to the plane
The second deals with observations :
vector of contributions of the observations to the plane
vector of squared cosines of the observations in the plane
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).
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
#> $ctr
#> FrenchPop.No FrenchPop.Yes Rap.No Rap.Yes Rock.No
#> 0.3132378 0.1961231 3.7838834 20.4430864 6.6935805
#> Rock.Yes Jazz.No Jazz.Yes Classical.No Classical.Yes
#> 18.0378233 5.0065598 20.8243188 6.9512610 17.7501259
#>
#> $cos2
#> FrenchPop.No FrenchPop.Yes Rap.No Rap.Yes Rock.No
#> 0.012706 0.012233 0.565893 0.599902 0.593478
#> Rock.Yes Jazz.No Jazz.Yes Classical.No Classical.Yes
#> 0.613430 0.591868 0.638249 0.579097 0.615450
#>
#> $vctr
#> FrenchPop Rap Rock Jazz Classical
#> 0.509361 24.226970 24.731404 25.830879 24.701387
#>