Skip to content

How to re-build fitted values from lmer ?

2 messages · Sandrine-et-Francois, Douglas Bates

#
The fitted values involve both the fixed-effects parameters and the
random effects.  In addition to the values that you have indicated you
need the model matrix for the random effects to form the values in
fitted(f1).  The transpose of the model matrix is in the Zt slot.

Assuming that you are using the development version of lme4 from
R-forge, so that
[1] "0.999375-13"

you can reproduce the fitted values as
[1] TRUE
On 4/17/08, Sandrine-et-Francois <francoisetsandrine.mercier at wanadoo.fr> wrote: