[R] quick question about lme()

YA xinxi813 at 163.com
Sat Apr 14 18:33:05 CEST 2012


Hi everyone,

I have a quick question about the random part in lme().

Here is the code:

> lme(WBEING~HRS+LEAD+G.HRS,random=~LEAD|GRP)

I want to specify both random intercept and random slope of LEAD. Is the 
random intercept already in it? or should I specify it like:

> lme(WBEING~HRS+LEAD+G.HRS,random=~1+LEAD|GRP)     ?

Thank you very much.

Best regards,

YA



More information about the R-help mailing list