[R] repeated measures ANOVA using Anova in car library

Rüdiger Wolf r.h.wolf at gmx.net
Tue Jan 21 18:56:56 CET 2014


Dear all,

I am trying to do a repeated-measures ANOVA using Anova of the car package.

I have a quite basic design with 24 subjects and only 2 within-subject
factors (condition (2 levels: legal an illegal) and day (1,2,3)).

I found the Examples (see
https://stat.ethz.ch/pipermail/r-help/2008-December/181981.html) in
?Anova, but I don't know what to do if there are only within-subject
factors. What should I do with the mod.ok model object?

----------------------snip---------------------

name_test_fribbles<-read.csv('Naming_test_Fribbles.csv') # Import
cond<-factor(rep(c("legal","illegal"),c(3,3)),levels=c("legal","illegal"))
day<-ordered(rep(1:3,2))
idata<-data.frame(cond,day)
mod.ok<-lm(cbind(legTag1,legTag2,legTag3,illegTag1,illegTag2,illegTag3)
           ~ THIS IS MISSING

		,data=name_test_fribbles)


-----------------------snip-------------------------

I would be glad if anyone could help me! Thanks a lot!

Rudi



More information about the R-help mailing list