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

View source: R/phi.table.R

phi.tableR Documentation

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

Author(s)

Nicolas Robette

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

data(Music)
phi.table(Music$Jazz,Music$Age)

GDAtools documentation built on March 18, 2022, 5:13 p.m.