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: [EMAIL PROTECTED] on behalf of Ross Darnell >Sent: Mon 9/12/2005 9:28 PM >To: [email protected] >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 >[EMAIL PROTECTED] > >______________________________________________ >[email protected] 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]] > >______________________________________________ >[email protected] 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 ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
