Skip to content

Anova in 'car': "SSPE apparently deficient rank"

4 messages · Colleen F. Moore, John Fox, Peter Dalgaard

#
Colleen F. Moore wrote:
Hmm, this does seem to work with regular anova.mlm:

 > anova(multmodel, idata=poke.idata, X=~Afac+Bfac,test="Sph")
Analysis of Variance Table


Contrasts orthogonal to
~Afac + Bfac

Greenhouse-Geisser epsilon: 0.2880
Huynh-Feldt epsilon:        0.4871

             Df     F num Df den Df    Pr(>F)     G-G Pr     H-F Pr
(Intercept)  1 36.67      6     24 6.164e-11 2.5249e-04 3.3530e-06
Residuals    4


As far as I recall, the epsilon corrections do not have a formal 
requirement of a nonsingular SSD of the relevant contrast. Not sure 
about the accuracy of the F probabilities in such cases, though.
#
Dear Peter and Colleen,

I think that Peter realizes this, but what Anova() does in this case is
equivalent to the MANOVA
Error in anova.mlm(multmodel, M = ~Afac * Bfac, X = ~Afac + Bfac, idata =
poke.idata) : 
  residuals have rank 4 < 6

which in turn is equivalent to
Error in anova.mlm(multmodel, idata = poke.idata, X = ~Afac + Bfac) : 
  residuals have rank 4 < 6

both of which fail for the same reason that Anova() does: Because the
within-subject interaction has 6 df and there are just 5 subjects, the
residual SSP matrix, say SSPE, is of rank 4. The hypothesis of no
interaction has (3 - 1)*(4 - 1) = 6 df, and thus the response-transformation
matrix for this hypothesis, say P, has 6 columns. The error SSP matrix for
the interaction, t(P) %*% SSPE %*% P, is also therefore of rank 4 < 6.

I believe that under these circumstances, it's possible to do the univariate
F-tests but not the multivariate repeated-measures ANOVA. Since Anova()
always computes the multivariate tests, however, I don't see a way around
the problem without entirely changing how Anova() gets the univariate tests.

What's unclear to me is whether the full data set really has just 5
subjects.

Regards,
 John

--------------------------------
John Fox
Senator William McMaster 
  Professor of Social Statistics
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
web: socserv.mcmaster.ca/jfox
On
http://www.psychology.mcmaster.ca/bennett/psy710/lectures/maxwell_chp12.pdf
http://www.R-project.org/posting-guide.html
#
John Fox wrote:
Yep. Just let me add that what you call "univariate" is what I call 
"spherical", i.e. it is based on the assumption that the true error 
covariance matrix t(P) %*% Sigma %*% P is proportional t(P) %*% P.
These things do happen...