GDAtools (version 1.5)

homog.test: Computes a homogeneity test for a categorical supplementary variable

Description

From MCA results, computes a homogeneity test for a categorical supplementary variable, i.e. characterizes the homogeneity of several subclouds.

Usage

homog.test(resmca, var)

Arguments

resmca

object of class 'MCA', 'speMCA', 'csMCA', 'stMCA' or 'multiMCA'

var

the categorical supplementary variable. It does not need to have been used at the MCA step.

Value

Returns a list of square matrices, one per MCA dimension. Each matrix gives the test statistic for any pair of categories.

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

speMCA, csMCA, stMCA, multiMCA, textvarsup

Examples

Run this code
# NOT RUN {
## Performs a specific MCA on 'Music' example data set
## ignoring every 'NA' (i.e. 'not available') categories,
## and then computes a homogeneity test for age supplementary variable.
data(Music)
getindexcat(Music)
mca <- speMCA(Music[,1:5],excl=c(3,6,9,12,15))
homog.test(mca,Music$Age)
# }

Run the code above in your browser using DataLab