# NOT RUN {
# Load data
#:::::::::::::::::::::::::::::::::::::::
data("ToothGrowth")
df <- ToothGrowth
# Kruskal-wallis rank sum test
#:::::::::::::::::::::::::::::::::::::::::
df %>% kruskal_effsize(len ~ dose)
# Grouped data
df %>%
group_by(supp) %>%
kruskal_effsize(len ~ dose)
# }
Run the code above in your browser using DataLab