powered by
Computes the Theil's U statistic between two categorical variables in data.frame.
theil(dfm, x, y)
data.frame. It has the following variables.:
var1 : character. first variable name.
var2 : character. second variable name.
coef_corr : numeric. Theil's U statistic.
data.frame. probability distributions.
character. name of categorical or discrete variable.
character. name of another categorical or discrete variable.
cramer.
cramer
theil(mtcars, "gear", "carb")
Run the code above in your browser using DataLab