Re: [R] Different results

About this list Date view Thread view Subject view Author view Attachment view

From: Berton Gunter (gunter.berton@gene.com)
Date: Fri 28 May 2004 - 08:54:38 EST


Message-id: <40B671AE.60D63B27@gene.com>

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.
>
> ---------------------------------
>
> Αποκτήστε την δωρεάν σας@yahoo.gr
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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

______________________________________________ R-help@stat.math.ethz.ch 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


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:13 EST