library(rstatix)
data("ToothGrowth")
res <- anova_test(ToothGrowth, len ~ dose)
print_test(res)
res <- kruskal_test(ToothGrowth, len ~ dose)
print_test(res)
res <- wilcox_test(ToothGrowth, len ~ supp)
print_test(res)
library(lmerTest)
data("sleepstudy", package = "lme4")
res <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
print_test(res)
Run the code above in your browser using DataLab