Mauchly's test of sphericity of the measurements of each subject (a row of y), on the contrasts spanned by M
and orthogonal to X (both formulas over idata). Equivalent to R's mauchly.test(). As R's
mauchly.test(lm(y ~ 1), X = ~1) and its variants (group for lm(y ~ group), M, X, idata).
Mauchly's test of sphericity of the measurements of each subject (a row of
y), on the contrasts spanned byMand orthogonal toX(both formulas overidata). Equivalent to R'smauchly.test(). As R'smauchly.test(lm(y ~ 1), X = ~1)and its variants (groupforlm(y ~ group),M,X,idata).