Skip to content
Prev 317 / 20628 Next

lmer vs lmer2

Dear Douglas,

In frustration, I invoked lmer2 this morning and I'm pleased to be able
to tell you that lmer2 copes well and quickly with the model having a
random intercept and two random covariate slopes.  I have not been able
to get lmer to converge for the model on the same data.

Andy

-----Original Message-----
From: dmbates at gmail.com [mailto:dmbates at gmail.com] On Behalf Of Douglas
Bates
Sent: Wednesday, September 05, 2007 9:22 PM
To: ajbush at bellsouth.net
Cc: r-sig-mixed-models at r-project.org
Subject: Re: [R-sig-ME] Specifying random effects for multiple
covariates via lmer
On 9/5/07, Andy Bush <ajbush at bellsouth.net> wrote:
(pp
(1)
and
difficulty
for
try to
separately:
id),data=fev,
id),data=fev,
Maybe I am missing the point but wouldn't the model you are
considering be written as

lmer(LFEV1 ~ Age + loght + InitAge + logbht + (loght + Age|id), data =
fev, na.action = na.omit, method = "REML")

That provides correlated random effects for the intercept, the
coefficient for loght and the coefficient for Age at each level of the
id factor.