tadaatoolbox (version 0.16.0)

ord_gamma: Gamma

Description

Simple wrapper for DescTools::GoodmanKruskalGamma.

Usage

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

Run this code
# NOT RUN {
df <- data.frame(rating = round(runif(50, 1, 5)),
                 group  = sample(c("A", "B", "C"), 50, TRUE))
tbl <- table(df)
ord_gamma(tbl)
# }

Run the code above in your browser using DataLab