Skip to content

lmList in the nlme package [Was Re: Please reply me]

1 message · Douglas Bates

#
On Sun, Sep 20, 2009 at 8:06 AM, mino rezayi <mino.rezayi at yahoo.com> wrote:

            
I assume that you are using R, in which case it is probably more
productive to send your questions to the
R-SIG-Mixed-Models at R-project.org mailing list.  I have taken the
liberty of cc:ing the list on this reply.

The lmList function takes a formula like the formula for lm but with
an additional term of the form | grp at the end to describe the
grouping.  You would give the formula for your model and the data set.

Generally it is easier to help if you provide a reproducible example,
perhaps with generated data.

Also you should note that lmList does not fit a mixed-effects model.
It fits separate models to the data corresponding to each level of the
grouping factor.