[R] Repeated-measures: aov(), lme() and lmer()

From: Francisco Torreira <ftorrei2_at_uiuc.edu>
Date: Sat 07 Apr 2007 - 02:08:00 GMT


Hello,

Can anyone confirm if these 3 function calls are equivalent? I would like to test for treatment effects in a repeated-measures design. The design is balanced:

# 1:

aov(y~subject+treatment)

# 2:

aov(y~treatment+Error(subject))

# 3:

lme(y~treatment, random= ~1|subject)

# 4:

lmer(y~treatment+(1|subject))

######

Thanks in advance,

-- 
Francisco Torreira
PhD Candidate in Romance Linguistics
University of Illinois at Urbana-Champaign

https://netfiles.uiuc.edu/ftorrei2/www/index.html
tel: (+1) 217 - 778 8510

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sat Apr 07 12:18:08 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 07 Apr 2007 - 04:30:58 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.