GDAtools (version 1.5)

assoc.catcont: Bivariate association

Description

Measures the association between a categorical variable and a continuous variable

Usage

assoc.catcont(x,y)

Arguments

x

the categorical variable (must be a factor)

y

the continuous variable (must be a factor)

Value

A list with the following elements :

eta.squared

eta-squared between the two variables

cor.coeff

correlation coefficient between the two variables, for each level of the categorical variable

References

Rakotomalala R., 'Comprendre la taille d'effet (effect size)', [http://eric.univ-lyon2.fr/~ricco/cours/slides/effect_size.pdf]

See Also

assoc.twocat, condesc, catdesc

Examples

Run this code
# NOT RUN {
data(Taste)
getindexcat(Taste[,1:5])
mca <- speMCA(Taste[,1:5],excl=c(3,6,9,12,15))
assoc.catcont(Taste$Gender,mca$ind$coord[,1])
# }

Run the code above in your browser using DataLab