Re: [R] lm and anova

2011-05-13 Thread Sara Sjöstedt de Luna
Thanks a lot! Best, Sara -Ursprungligt meddelande- Från: istaz...@gmail.com [mailto:istaz...@gmail.com] För Ista Zahn Skickat: den 12 maj 2011 16:46 Till: Sara Sjöstedt de Luna Kopia: r-help@r-project.org; Katie Andrle (katie.and...@gmail.com) (katie.and...@gmail.com) Ämne: Re: [R] lm

Re: [R] lm and anova

2011-05-12 Thread peter dalgaard
On May 12, 2011, at 15:30 , Paul Chatfield wrote: > anova uses sequential sums of squares (type 1), Yes. > summary adjusted sums of > squares (type 3) No. Type III SS is a considerably stranger beast. summary() looks at the s.e. of individual coefficients. For 1 DF effects, this is often eq

Re: [R] lm and anova

2011-05-12 Thread Paul Chatfield
anova uses sequential sums of squares (type 1), summary adjusted sums of squares (type 3) Take for example the first line of each output. In summary this tests whether vole1 is needed ASSUMING volelag and year are already in the model (conclusion would then be: it isn't needed p=.89). Whereas in

Re: [R] lm and anova

2011-05-12 Thread Ista Zahn
Hi Sara, As the help page for anova.lm says, "Specifying a single object gives a sequential analysis of variance table". That most likely also the answer to your second question. The anova function can be used to compare nested models, and this provides the flexibility to test arbitrary hypothes

Re: [R] lm and anova

2011-05-12 Thread Sara Sjöstedt de Luna
Hi! We have run a linear regression model with 3 explanatory variables and get the output below. Does anyone know what type of test the anova model below does and why we get so different result in terms of significant variables by the two tables? Thanks! /Sara > summary(model) Call: lm(formul

[R] lm and anova

2011-05-12 Thread Sara Sjöstedt de Luna
Hi! We have run a linear regression model with 3 explanatory variables and get the output below. Does anyone know what type of test the anova model below does and why we get so different result in terms of significant variables by the two tables? Thanks! /Sara > summary(model) Call: lm(formul