Skip to content
Prev 13260 / 20628 Next

mixed-effects model with crossed random effects

Magdalena Wiedermann <mwiederm at ...> writes:
It is possible to fit crossed random effects in lme (it's discussed
in one of the later chapters of Pinheiro and Bates), but it's a
bit of a hassle.  If you're willing to use lme4 instead (you can
use the lmerTest or pbkrtest if you need p-values, see ?pvalues)
this will be a little bit easier.

    Something like

  lmer(responses~veg + (veg|year/Month) + (veg|block), data= ...)

would seem to be a reasonable guess, although it may be too much
for your data since you will be estimating 3 3x3 variance-covariance
matrices of veg responses (within year, within Month-within-year,
within block).  I don't know whether you have trends over
the course of your time series (e.g. add a numeric covariate of
time period to the fixed effects) or consistent seasonal effects
(e.g. make your model (veg|year) + (veg|Month) + (veg|year:Month)) ...

   Ben Bolker