scaled.dev {GDAtools} | R Documentation |
Scaled deviations for a categorical supplementary variable
Description
From MCA results, computes scaled deviations between categories for a categorical supplementary variable.
Usage
scaled.dev(resmca, var)
Arguments
resmca |
object created with |
var |
the categorical supplementary variable. It does not need to have been used at the MCA step. |
Value
Returns a list with one matrix for each dimension of the MCA. Each matrix is filled with scaled deviations between the categories of the supplementary variable, for a given dimension.
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
supvar
, supvars
, ggadd_supvar
, ggadd_supvars
, textvarsup
, supind
Examples
# specific MCA of 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)
# computes scaled deviations for Age supplementary variable
scaled.dev(mca,Music$Age)