Skip to content

question on lmer function

3 messages · Richard Palmer, Doran, Harold

#
Richard

There is much more information that you need to provide before a
thoughtful answer can be provided. Maybe you can describe the structure
of your data, your outcome variable, etc. There is a vignette in the
lmer package called 'Implementation' that will show you some methods for
model fitting.

With that said, at the most basic level, a model of the form

response = \mu + beta(covariate) + a_j + e_ij, a_j ~ N(0,r^2), e_ij ~
N(0, s^2)

Might be as follows in lmer