break_interaction: Additive Breakdowns of Variances

View source: R/break_interaction.R

break_interactionR Documentation

Additive Breakdowns of Variances

Description

Computes three additive breakdown of variances for the interaction between two supplementary variables

Usage

break_interaction(resmca, v1, v2)

Arguments

resmca

object created with MCA, speMCA, csMCA, wcMCA, bcMCA, stMCA or multiMCA function

v1

factor. The first categorical supplementary variable.

v2

factor. The second categorical supplementary variable.

Details

This function reproduces the approach developed in Le Roux & Rouanet (2010) in section 4.4, in particular table 4.5.

Value

A data frame

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

ggadd_interaction, ggadd_partial

Examples

# specific MCA of Taste example data set
data(Taste)
junk <- c("FrenchPop.NA", "Rap.NA", "Rock.NA", "Jazz.NA", "Classical.NA",
          "Comedy.NA", "Crime.NA", "Animation.NA", "SciFi.NA", "Love.NA", 
          "Musical.NA")
mca <- speMCA(Taste[,1:11], excl = junk)
# breakdowns of variance 
# for the interaction between Gender and Age
break_interaction(mca, Taste$Gender, Taste$Age)

GDAtools documentation built on June 8, 2025, 10:08 a.m.