theil | R Documentation |
Computes the Theil's U statistic between two categorical variables in data.frame.
theil(dfm, x, y)
dfm |
data.frame. probability distributions. |
x |
character. name of categorical or discrete variable. |
y |
character. name of another categorical or discrete variable. |
data.frame. It has the following variables.:
var1 : character. first variable name.
var2 : character. second variable name.
coef_corr : numeric. Theil's U statistic.
cramer
.
theil(mtcars, "gear", "carb")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.