[R] lme4 - higher level

From: Brian Perron <beperron_at_wustl.edu>
Date: Thu 29 Jun 2006 - 02:25:29 EST

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?


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 02:52:33 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:08 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.