Re: [R] Syntax for linear mixed model

From: Dieter Menne <>
Date: Sat 14 Jan 2006 - 22:29:16 EST

N.W.Galwey <nw.galwey <at>> writes:

> The syntax below works, and gives the expected results, in R version 2.0.0,
> provided that I have loaded packages Matrix, latticeExtra and lme4.
> However, I cannot get it to work in version 2.2.1. Can anyone tell me how
> to fit this model in the more recent version?
> barleyprogeny.model1lme <- lme(yield_g_m2 ~ 1,
> data = barleyprogeny.unbalanced, random = ~ 1|fline + fblock)

You must use the new style and call lmer when using package lme4 now. There is no full documentation on lmer yet since package lme4 is work in progress, but there are a few examples in the MEMSS package.

However, I would suggest that for the rather simple model, you better don't load lme4 and Matrix, and use well-documented package nlme instead.

Dieter mailing list PLEASE do read the posting guide! Received on Sat Jan 14 22:40:59 2006

This archive was generated by hypermail 2.1.8 : Sun 15 Jan 2006 - 06:04:30 EST