x is numeric, so R consider this to be a linear regression, not a 3 group analysis. To do the latter in R:
x<-factor(1:3) Read the R Introductory manuals or the first few and other relevant chapters Venables' and Ripley's MASS first, please! -- Bert Gunter vasilis pappas wrote: > Hello everybody, > I've been practicing with some data in R and SPSS and I noticed that there are > some differences in ANOVA results. > > For example with : > y<-c(1,2,34,2,3,45,2,1,67,3,2,67,2,2,98,4,4,23,1,1,23,2,3,45) and > x<-rep(c(1,2,3),8) > > I get in R ( with summary(aov(y~x)) ) > MSres=350.7 > df=22 > > while in SPSS I get > MSres=221.9 > df=21 > > Can enyone explain me what is the problem or what am I doing wrong? > Thanks for your interest a priori, > Vasileios. > > --------------------------------- > > ��������� ��� ������ [EMAIL PROTECTED] > > [[alternative HTML version deleted]] > > ______________________________________________ > [EMAIL PROTECTED] mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Bert Gunter Non-Clinical Biostatistics Genentech MS: 240B Phone: 650-467-7374 "The business of the statistician is to catalyze the scientific learning process." -- George E.P. Box ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
