s-news
[Top] [All Lists]

Re: need help with setting logistic mixed model

To: "Ali & Hind Lazrak" <alazrak@telus.net>, <s-news@lists.biostat.wustl.edu>
Subject: Re: need help with setting logistic mixed model
From: "Stella Karuri" <swkaruri@insightful.com>
Date: Wed, 13 Feb 2008 09:32:04 -0800
In-reply-to: <000a01c86dfe$0c882970$6401a8c0@DellLazrak>
References: <20080207144343.0285u0yjkk04kc0k@webmail.utoronto.ca> <001a01c86ae9$08c9db70$6401a8c0@DellLazrak> <000a01c86dfe$0c882970$6401a8c0@DellLazrak>
Thread-index: Acht/imB7rBqi+2oQviPp+hR7UUohAAZZZsA
Thread-topic: [S] need help with setting logistic mixed model

The argument ‘random’ can accept a list (See Pinheiro, J. C. and Bates., D. M. (2000). Mixed-effects Models in S and S-PLUS)

 

CSO.glme.out2<-glme(use~ethn+sex+exposure+jobduration+age+time+time^2+dept+jobgroup,

            Random = list ( id =  ~ dept + job – 1,  # exclude intercept to avoid over fitting

                                   plant= ~ 1),  

                                   data = "">

 

Stella


From: s-news-owner@lists.biostat.wustl.edu [mailto:s-news-owner@lists.biostat.wustl.edu] On Behalf Of Ali & Hind Lazrak
Sent: Tuesday, February 12, 2008 9:05 PM
To: s-news@lists.biostat.wustl.edu
Subject: [S] need help with setting logistic mixed model

 

Dear listserve users,

 

I need help with the following command line where I need to introduce a random effect for department (variable name: dept) and for job (variable name: job)at the subject (variable name: studyno1) level

I could not find any references on how to do that, so your help would be greatly appreciated

CSO.glme.out2<-glme(use~ethn+sex+exposure+jobduration+age+time+time^2+dept+jobgroup,random=~1| plant/id,data="" CSOgee$coefficients, method="REPQL")

 

Thank you so much in advance.

 

 

 

<Prev in Thread] Current Thread [Next in Thread>