Re: [R] Need help understanding output from aov and from anova

2009-06-04 Thread Suman Sundaresh
> Molecular Oncology and Breast Cancer Program > British Columbia Cancer Research Centre > > email: smckin...@bccrc.ca > tel: 604-675-8000 x7561 > > BCCRC > Molecular Oncology > 675 West 10th Ave, Floor 4 > Vancouver B.C. > V5Z 1L3 > > Canada > > > &g

Re: [R] Need help understanding output from aov and from anova

2009-06-03 Thread Steven McKinney
4 Vancouver B.C. V5Z 1L3 Canada > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Suman Sundaresh > Sent: Wednesday, June 03, 2009 3:55 PM > To: r-help@r-project.org > Subject: [R] Need help understandin

[R] Need help understanding output from aov and from anova

2009-06-03 Thread Suman Sundaresh
Hi all, I noticed something strange when I ran aov and anova. vtot=c(7.29917, 7.29917, 7.29917) #identical values fac=as.factor(c(1,1,2)) #group 1 has first two elements, group 2 has the 3rd element When I run: > anova(lm(vtot~fac)) Analysis of Variance Table Response: vtot Df