Diff for "FAQ/Rss" - CBU statistics Wiki
location: Diff for "FAQ/Rss"
Differences between revisions 5 and 6
Revision 5 as of 2007-10-23 15:19:05
Size: 423
Editor: PeterWatson
Comment:
Revision 6 as of 2007-10-23 15:22:16
Size: 617
Editor: PeterWatson
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
R calculates sequential or Type I SS when using lm, lmer and aov. See [http://tolstoy.newcastle.edu.au/R/help/05/04/2981.html here]. R calculates sequential or Type I SS by default when using lm, lmer and aov as opposed to the usual type III SS which partial out effects of other terms in the model. A hierarchical approach is suggested which gives the same results for both sums of squares. See [http://tolstoy.newcastle.edu.au/R/help/05/04/2981.html here].  

Sums of Squares in lm, aov and lmer in R

R calculates sequential or Type I SS by default when using lm, lmer and aov as opposed to the usual type III SS which partial out effects of other terms in the model. A hierarchical approach is suggested which gives the same results for both sums of squares. See [http://tolstoy.newcastle.edu.au/R/help/05/04/2981.html here].

Type III SS may be obtained using [http://tolstoy.newcastle.edu.au/R/help/05/08/9560.html may be obtained] using terms of form

fit <- anova(lm(y~x+z)) 
anova(fit, ssType=3) 

for lm and the Anova() procedure for lmer.

None: FAQ/Rss (last edited 2014-01-16 11:03:55 by PeterWatson)