supind {GDAtools} | R Documentation |
Statistics for supplementary individuals
Description
From MCA results, computes statistics (coordinates, squared cosines) for supplementary individuals.
Usage
supind(resmca, supdata)
indsup(resmca, supdata)
Arguments
resmca |
object of class |
supdata |
data frame with the supplementary individuals. It must have the same factors as the data frame used as input for the initial MCA. |
Value
Returns a list with the following items :
coord |
matrix of individuals coordinates |
cos2 |
matrix of individuals squared cosines |
Note
indsup
is softly deprecated. Please use supind
instead.
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
ggadd_supind
,textindsup
, supvar
, supvars
Examples
# 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])