[R] quick question about lme()

ONKELINX, Thierry Thierry.ONKELINX at inbo.be
Sun Apr 15 00:06:51 CEST 2012


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-bounces op r-project.org [r-help-bounces op r-project.org] namens YA [xinxi813 op 163.com]
Verzonden: zaterdag 14 april 2012 18:33
Aan: r-help op 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 op 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.



More information about the R-help mailing list