Assumption Tests for ANOVAs
test_levene
computes Levene's test for homogeneity of variances across
groups via car::leveneTest
. test_sphericity
computes Mauchly
test of sphericity via car::Anova
.
test_levene(afex_aov, center = mean, ...) test_sphericity(afex_aov)
afex_aov |
|
center |
Function to compute the center of each group; |
... |
passed to |
Mattan S. Ben-Shachar and Henrik Singmann
### Setup ANOVAs data(obk.long, package = "afex") between_1 <- aov_car(value ~ treatment + Error(id), data = obk.long) between_2 <- aov_car(value ~ treatment*gender + Error(id), data = obk.long) mixed <- aov_car(value ~ treatment * gender + Error(id/(phase*hour)), data = obk.long) within <- aov_car(value ~ 1 + Error(id/(phase*hour)), data = obk.long) ### Levene Test for Homogeneity of Variances test_levene(between_1) test_levene(between_2) test_levene(mixed) ## Not run: test_levene(within) ## fails ## End(Not run) ### Mauchly Test of Sphericity ## Not run: ## fails for between-subjects only models: test_sphericity(between_1) test_sphericity(between_2) ## End(Not run) test_sphericity(mixed) test_sphericity(within)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.