GDAtools (version 1.5)

catdesc: Bivariate associations

Description

Measures the association between a categorical variable and some continuous and/or categorical variables

Usage

catdesc(y,x,min.phi=NULL)

Arguments

y

the categorical variable to describe (must be a factor)

x

a data frame with continuous and/or categorical variables

min.phi

for the relationship between y and a categorical variable, only associations higher or equal to min.phi will be displayed. If NULL (default), they are all displayed.

Value

A list of the following items :

variables

associations between y and the variables in x, computed with BivariateAssoc function from package moreparty

bylevel

a list with one element for each level of y

Each element in bylevel has the following items :
categories

a data frame with categorical variables from x and associations measured by phi

continuous.var

a data frame with continuous variables from x and associations measured by correlation coefficients

References

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

See Also

catdes, BivariateAssoc

Examples

Run this code
# NOT RUN {
data(Taste)
getindexcat(Taste[,1:5])
mca <- speMCA(Taste[,1:5],excl=c(3,6,9,12,15))
hc <- hclust(dist(mca$ind$coord))
clust <- as.factor(cutree(hc,5))
catdesc(clust, Taste[,c('Gender','Age')])
# }

Run the code above in your browser using DataLab