View source: R/break_interaction.R
break_interaction | R Documentation |
Computes three additive breakdown of variances for the interaction between two supplementary variables
break_interaction(resmca, v1, v2)
resmca |
object created with |
v1 |
factor. The first categorical supplementary variable. |
v2 |
factor. The second categorical supplementary variable. |
This function reproduces the approach developed in Le Roux & Rouanet (2010) in section 4.4, in particular table 4.5.
A data frame
Nicolas Robette
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).
ggadd_interaction
, ggadd_partial
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.