[R] Translating lme model call to lme4

Simon Blomberg blomsp at ozemail.com.au
Tue Sep 13 04:24:50 CEST 2005


There is a slight caveat in that lmer does not respect implicit nesting, so 
you need to make sure your nested groups have unique levels:

http://finzi.psych.upenn.edu/R/Rhelp02a/archive/47413.html
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/47423.html

Simon.

At 11:42 AM 13/09/2005, Doran, Harold wrote:
>Only the random portion will differ as in:
>
>lmer(lognrms ~ Group*Rotation*muscle*side*support*arms + (1|Subject) + 
>(1|Stratum) + (1|rep), Data)
>
>
>-----Original Message-----
>From:   r-help-bounces at stat.math.ethz.ch on behalf of Ross Darnell
>Sent:   Mon 9/12/2005 9:28 PM
>To:     r-help at stat.math.ethz.ch
>Cc:
>Subject:        [R] Translating lme model call to lme4
>
>I would appreciate help translating the following lme model to an lmer
>function.
>
>lme(lognrms ~ Group*Rotation*muscle*side*support*arms,
>                  random=~1|Subject/Stratum2/rep, data=Data)
>
>
>
>Many thanks
>
>Ross Darnell
>r.darnell at uq.edu.au
>
>______________________________________________
>R-help at 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
>
>
>
>
>         [[alternative HTML version deleted]]
>
>______________________________________________
>R-help at 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

Simon Blomberg, B.Sc.(Hons.), Ph.D, M.App.Stat.
Centre for Resource and Environmental Studies
The Australian National University
Canberra ACT 0200
Australia
T: +61 2 6125 7800 email: Simon.Blomberg_at_anu.edu.au
F: +61 2 6125 0757
CRICOS Provider # 00120C




More information about the R-help mailing list