indsup: Computes statistics for supplementary individuals

View source: R/indsup.R

indsupR Documentation

Computes statistics for supplementary individuals

Description

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

Usage

indsup(resmca, supdata)

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.

Value

Returns a list:

coord

matrix of individuals' coordinates

cos2

matrix of individuals' square cosines

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

textindsup, speMCA, csMCA, varsup

Examples

## Performs a specific MCA on 'Music' example data set
## ignoring every 'NA' (i.e. 'not available') categories,
## and then computes statistics for supplementary individuals.
data(Music)
getindexcat(Music)
mca <- speMCA(Music[3:nrow(Music),1:5],excl=c(3,6,9,12,15))
indsup(mca,Music[1:2,1:5])

GDAtools documentation built on March 18, 2022, 5:13 p.m.