Simple wrapper for DescTools::GoodmanKruskalGamma.

ord_gamma(x, y = NULL)

Arguments

x

A table or dependent numeric variable.

y

Empty or independent grouping variable

Value

numeric of length 1.

Examples

df <- data.frame(rating = round(runif(50, 1, 5)), group = sample(c("A", "B", "C"), 50, TRUE)) tbl <- table(df) ord_gamma(tbl)
#> [1] -0.36790924