Skip to content
Prev 16632 / 20628 Next

What is the appropriate zero-correlation parameter model for factors in lmer?

Rune,

Your explanations make sense to me but I don't know how to connect
them to the things I know, or thought I knew, about mixed models (see
(1) and (2)).
Let me just double-check if I get it right:

fm5 <- lmer(score ~  Machine + (1|Worker) + (1|Worker:Machine), Machines)

would imply that covariance between two different observations from
the same Machine and same Worker is sigma_w^2 + sigma_wm^2 and the
covariance between two different observations from different Machines
but the same Worker is sigma_w^2. Do I have this right?

(1) In the mixed model books I read random effects (RE) are introduces
as zero-centered offsets (following a normal distribution) around the
fixed effects. However, this doesn't seem to be the case for the
models you suggest, i.e. the factor Machine is coded with
contr.treatment by default but you use 0 + Machine or 0 + A + B + C in
the random effects part. What am I missing here?

(2) From the "RE as zero-centered offsets around the fixed
effects"-perspective the models suggest by Reinhold Kliegl do makes
sense to me. But from the "variance-covariance matrix in the marginal
distribution"-perspective I have a hard time understanding what they
represent.
E.g. consider zcp_LMM:
mm1 <- model.matrix(~ 1 + Machine, Machines)
dBA <- mm1[, 2]
dCA <- mm1[, 3]
zcp_LMM <- lmer(score ~  Machine + (1 + dBA + dCA || Worker), Machines)

If I get it right the covariance between two different observations
from different Machines but the same Worker is sigma_w^2 here. But
what about the covariance between two different observations from the
same Machine and same Worker? Is it sigma_w^2 + sigma_j^2 where
sigma_j^2 refers to the j'th contrasts, i.e. it would be different for
dBA (the difference between Machine B and A) and dCA (the difference
between Machine C and A? If this is true is there a useful way to
interpret these models?

Cheers,
Maarten
On Fri, May 25, 2018 at 10:27 AM, Rune Haubo <rune.haubo at gmail.com> wrote: