homog.test {GDAtools} | R Documentation |
Homogeneity test for a categorical supplementary variable
Description
From MCA results, computes a homogeneity test between categories of a supplementary variable, i.e. characterizes the homogeneity of several subclouds.
Usage
homog.test(resmca, var, dim = c(1,2))
Arguments
resmca |
object of class |
var |
the categorical supplementary variable. It does not need to have been used at the MCA step. |
dim |
the axes which are described. Default is c(1,2) |
Value
Returns a list of lists, one for each selected dimension in the MCA. Each list has 2 elements :
test.stat |
The square matrix of test statistics |
p.values |
The square matrix of p-values |
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
supvar
, supvars
, dimtypicality
Examples
# specific MCA of Music example data set
data(Music)
junk <- c("FrenchPop.NA", "Rap.NA", "Rock.NA", "Jazz.NA", "Classical.NA")
mca <- speMCA(Music[,1:5], excl = junk)
# homogeneity test for variable Age
homog.test(mca, Music$Age)