powered by
Check model for violation of sphericity
check_sphericity(x, ...)
A model object.
Arguments passed to car::Anova.
car::Anova
Invisibly returns the p-values of the test statistics. A p-value < 0.05 indicates a violation of sphericity.
# NOT RUN { if (require("car")) { soils.mod <- lm( cbind(pH, N, Dens, P, Ca, Mg, K, Na, Conduc) ~ Block + Contour * Depth, data = Soils ) check_sphericity(Manova(soils.mod)) } # }
Run the code above in your browser using DataLab