Re: [R] lme4 - higher level

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


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),

From: on behalf of Brian Perron Sent: Wed 6/28/2006 12:25 PM
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),

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?

Brian mailing list PLEASE do read the posting guide!

        [[alternative HTML version deleted]] mailing list PLEASE do read the posting guide! 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 Please read the posting guide before posting to the list.