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))

Arguments

resmca

object of class MCA, speMCA or csMCA

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

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).

Author

Nicolas Robette

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
#> $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 
#>