Learn R Programming

GDAtools (version 2.1)

ggeta2_variables: eta-squared plot

Description

Plots the eta-squared (squared correlation ratios) of the active variables of a MCA.

Usage

ggeta2_variables(resmca, axes = c(1,2))

Value

a ggplot2 object

Arguments

resmca

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

axes

numeric vector of length 2, specifying the components (axes) to plot. Default is c(1,2).

Author

Nicolas Robette

Details

This plot was proposed by Escofier and Pagès (2008) under the name "carré des liaisons", i.e. square of relationships, using correlation ratios to measure these relationships. Eta-squared (i.e. correlation ratio) is a measure of global association between a continuous variable and a categorical variable : it measures the share of variance of the continuous variables "explained" by the categorical variable. Here, it is used to plot the association between the active variables and the axes of the MCA cloud.

References

Escofier B. and Pagès J., 2008, Analyses factorielles simples et multiples, Dunod.

See Also

ggcloud_variables, ggadd_attractions

Examples

Run this code
data(Music)
junk <- c("FrenchPop.NA","Rap.NA","Jazz.NA","Classical.NA","Rock.NA")
mca <- speMCA(Music[,1:5], excl = junk)
ggeta2_variables(mca)

Run the code above in your browser using DataLab