Simple wrapper for DescTools::GoodmanKruskalGamma.
ord_gamma(x, y = NULL)
A table or dependent numeric variable.
table
Empty or independent grouping variable
numeric of length 1.
numeric
# 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