[R] partial SS for anova

John Fox jfox at mcmaster.ca
Mon Aug 1 02:08:00 CEST 2005


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 
-------------------------------- 

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of 
> NATALIA F TCHETCHERINA
> Sent: Saturday, July 30, 2005 6:25 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] partial SS for anova
> 
> 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.
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html




More information about the R-help mailing list