Re: [R] lme4 - higher level

From: Doran, Harold <HDoran_at_air.org>
Date: Thu 29 Jun 2006 - 02:56:56 EST

Brian  

Additional covariates would be included in the fixed portion of the model. For example  

test.1 <- lmer(y ~ b1 + b2 + b3 +age+sex+...+ (1 | group), org.data)


From: r-help-bounces@stat.math.ethz.ch on behalf of Brian Perron Sent: Wed 6/28/2006 12:25 PM
To: r-help@stat.math.ethz.ch
Subject: [R] lme4 - higher level

Hello all,

I just started working with the lme4 package to estimate a multilevel logistic regression and am planning to use this package for a cross-classification / multiple-membership model. I haven't found many worked examples and am trying to figure out how to add variables to the higher-level part of the model. Consider the following example:

test.1 <- lmer(y ~ b1 + b2 + b3 + (1 | group), org.data)

This model shows a simple two-level nesting pattern -- for example, persons nested in groups. If I have data describing the groups, such as the age or accreditation status of the group (or both), how would I include those variables in the model?

I found a very nice description of lme4 by Bates describing the package in R News. Is anybody aware of any other examples or resources that provide worked examples preferably with annotated results?

Thanks,
Brian



R-help@stat.math.ethz.ch 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]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jun 29 03:06:38 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 29 Jun 2006 - 04:13:09 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.