[R] Repeated Measure different results to spss

Peter Dalgaard P.Dalgaard at biostat.ku.dk
Tue Jul 10 12:05:09 CEST 2007

mb2 wrote:
> Hi, 
> I have some problems with my repeated measures analysis. When I compute it
> with SPSS I get different results than with R. Probably I am doing something
> wrong in R. 
> I have two groups (1,2) both having to solve a task under two conditions
> (1,2). That is one between subject factor (group) and one within subject
> factor (task). I tried the following:
>  aov(Score ~factor(Group)*factor(Task)+Error(Id)))
>  aov(Score ~factor(Group)*factor(Task))
> but it leads to different results than my spss. I definitely miss some point
> here .
Did you mean Error(factor(Id)) ?

With that modification, things look sane. Can't vouch for SPSS...

(As a general matter, I prefer to do the factor conversions up front,
rather than inside model formulas.)

   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907

More information about the R-help mailing list