Learn R Programming

dlookr (version 0.6.3)

theil: Theil's U statistic

Description

Computes the Theil's U statistic between two categorical variables in data.frame.

Usage

theil(dfm, x, y)

Value

data.frame. It has the following variables.:

  • var1 : character. first variable name.

  • var2 : character. second variable name.

  • coef_corr : numeric. Theil's U statistic.

Arguments

dfm

data.frame. probability distributions.

x

character. name of categorical or discrete variable.

y

character. name of another categorical or discrete variable.

See Also

cramer.

Examples

Run this code
theil(mtcars, "gear", "carb")

Run the code above in your browser using DataLab