indsup: Computes statistics for supplementary individuals

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/indsup.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
## 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 May 31, 2021, 5:08 p.m.