Learn R Programming

GDAtools (version 2.1)

supind: Statistics for supplementary individuals

Description

From MCA results, computes statistics (coordinates, squared cosines) for supplementary individuals.

Usage

supind(resmca, supdata)

indsup(resmca, supdata)

Value

Returns a list with the following items :

coord

matrix of individuals coordinates

cos2

matrix of individuals squared cosines

Arguments

resmca

object of class MCA, speMCA or csMCA

supdata

data frame with the supplementary individuals. It must have the same factors as the data frame used as input for the initial MCA.

Author

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

ggadd_supind,textindsup, supvar, supvars

Examples

Run this code
# specific MCA of Music example data set
# excluding the first two observations
data(Music)
junk <- c("FrenchPop.NA", "Rap.NA", "Rock.NA", "Jazz.NA", "Classical.NA")
mca <- speMCA(Music[3:nrow(Music),1:5], excl = junk)
# computes coordinates and squared cosines
# of the first two (supplementary) observations
supind(mca,Music[1:2,1:5])

Run the code above in your browser using DataLab