check_sphericity function

Check model for violation of sphericity

Check model for violation of sphericity

Check model for violation of sphericity. For Bartlett's Test of Sphericity

(used for correlation matrices and factor analyses), see check_sphericity_bartlett .

check_sphericity(x, ...)

Arguments

  • x: A model object.
  • ...: Arguments passed to car::Anova.

Returns

Invisibly returns the p-values of the test statistics. A p-value < 0.05 indicates a violation of sphericity.

Examples

data(Soils, package = "carData") soils.mod <- lm( cbind(pH, N, Dens, P, Ca, Mg, K, Na, Conduc) ~ Block + Contour * Depth, data = Soils ) check_sphericity(Manova(soils.mod))
  • Maintainer: Daniel Lüdecke
  • License: GPL-3
  • Last published: 2025-01-15