dimtypicality: Typicality tests for supplementary variables

View source: R/dimtypicality.R

dimtypicalityR Documentation

Typicality tests for supplementary variables

Description

Computes typicality tests for a list of supplementary variables of a MCA.

Usage

dimtypicality(resmca, vars, dim = c(1,2), max.pval = 1)

Arguments

resmca

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

vars

a data frame of supplementary variables

dim

the axes for which typicality tests are computed. Default is c(1,2)

max.pval

only categories with a p-value lower or equal to max.pval are displayed. If 1 (default), all categories are displayed

Value

Returns a list of data frames giving the typicality test statistics and p-values of the supplementary categories for the different axes.

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

dimdescr, dimeta2, dimcontrib

Examples

# specific MCA on 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)
# typicality tests for gender and age
dimtypicality(mca, Music[, c("Gender", "Age")])

GDAtools documentation built on Oct. 6, 2023, 5:07 p.m.