Skip to content

partial SS for anova

2 messages · NATALIA F TCHETCHERINA, John Fox

#
Hello,
I use  lme4 package.
library(lme4)
fit=lmer(y ~ time+dye+trt+trt:time + (1|rep), data=dataset, na.action='na.omit')
anova(fit)

The anova gives sequential F-tests and sequential SS.

My question is: how I can get partial F-tests and partial SS?
 For lm (not lmer)  
anova(lm(y~x+z))
we can use 
anova(fit, ssType=3)
but it is not work for lmer.

Natalia.
1 day later
#
Dear Natalia,

See the Anova() function in the car package. Also see the warning in ?Anova
about "Type III" sums of squares.

I hope this helps,
 John

--------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox 
--------------------------------