Learn R Programming

GDAtools (version 1.7)

phi.table: Computes the phi coefficient for every cells of a contingency table

Description

Computes the phi coefficient for every cells of the cross-tabulation between two categorical variables

Usage

phi.table(x,y,weights=rep(1,length(x)),digits=3)

Arguments

x

the first categorical variable

y

the second categorical variable

weights

an optional numeric vector of weights (by default, a vector of 1 for uniform weights)

digits

integer. The number of digits (default is 3).

Value

A table with the phi coefficients

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,assoc.catcont, condesc, catdesc

Examples

Run this code
# NOT RUN {
data(Music)
phi.table(Music$Jazz,Music$Age)
# }

Run the code above in your browser using DataLab