Re: [R] lm and aov produce different results for nested fixed-factor anova

2009-02-20 Thread Mark Difford
Hi Sergii, >> I have trouble obtaining the same results for nested Anova with two fixed >> factors when using >> lm and aov functions. There is no difference between the two if you treat them equally, i.e. if you summarize them in the same way. ## Try: anova(e2) summary(e1) ## Or: summary.lm(

[R] lm and aov produce different results for nested fixed-factor anova

2009-02-20 Thread Sergii Ivakhno
Dear R users, I have trouble obtaining the same results for nested Anova with two fixed factors when using lm and aov functions. The formulas are: > e1=aov(y~x/z) > e2=lm(y~x/z) summary(e1) Df Sum Sq Mean Sq F valuePr(>F) x 47 260.0 5.5 18.0088 < 2.