Both specifications are the same model. An intercept is added by default unless you use +0 or -1 like ~0 + LEAD|GRP or ~ -1 + LEAD|GRP ________________________________________ Van: r-help-boun...@r-project.org [r-help-boun...@r-project.org] namens YA [xinxi...@163.com] Verzonden: zaterdag 14 april 2012 18:33 Aan: r-help@r-project.org Onderwerp: [R] quick question about lme()
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 ______________________________________________ R-help@r-project.org 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. * * * * * * * * * * * * * D I S C L A I M E R * * * * * * * * * * * * * Dit bericht en eventuele bijlagen geven enkel de visie van de schrijver weer en binden het INBO onder geen enkel beding, zolang dit bericht niet bevestigd is door een geldig ondertekend document. The views expressed in this message and any annex are purely those of the writer and may not be regarded as stating an official position of INBO, as long as the message is not confirmed by a duly signed document. ______________________________________________ R-help@r-project.org 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.