Re: [R] Wrong results from anova

2015-04-14 Thread William Dunlap
It is a printing problem - the default number of digits in print.summary.aov is max(3L, getOption(digits) - 3L). Set options(digits=7) instead of your current 6 (?) or try print(summary(fit.Y), digits=7) to see more digits. Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Apr 14, 2015 at

Re: [R] Wrong results from anova

2015-04-14 Thread Phil Spector
Li Li - I belive it's a rounding error -- try setting options(digits=8) before displaying the output: summary(fit.Y) Df Sum Sq Mean Sq F value Pr(F) sample.Y 3 2203 734 190706 2e-16 *** Residuals8 0 0 --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01

[R] Wrong results from anova

2015-04-14 Thread li li
Hi all, I have following data. When I perform an anova, the residual sum of square returns to be zero. But this is wrong, since we can hand calculate the RSS to be around 0.0308. Did anyone come across the same problem before? Any suggestions? Thanks. Hanna ydata Y sample.Y 1

Re: [R] Wrong results from anova

2015-04-14 Thread Michael Dewey
See in-line On 14/04/2015 18:23, li li wrote: Hi all, I have following data. When I perform an anova, the residual sum of square returns to be zero. But this is wrong, since we can hand calculate the RSS to be around 0.0308. Did anyone come across the same problem before? Any suggestions?

Re: [R] Wrong results from anova

2015-04-14 Thread li li
0.003725088 is the mean square error. 2015-04-14 13:44 GMT-04:00 Michael Dewey li...@dewey.myzen.co.uk: See in-line On 14/04/2015 18:23, li li wrote: Hi all, I have following data. When I perform an anova, the residual sum of square returns to be zero. But this is wrong, since we