Skip to content
Prev 13287 / 20628 Next

mixed-effects model with crossed random effects

On 04/24/2015 02:26 PM, Ben Bolker wrote:
?Ben, thank you so much for your suggestions and help! I have a few 
follow up questions though....

1) Why do you choose to write (veg|year/Month) instead of 
(1|veg/year/Month)?
I am asking because I had read that for a continuous random effect it l 
would be written like ~veg  rather than  ~1|veg  which would be use for 
a categorical random effects. Is there anything to it?

2) How would ?lmer(response~veg + (veg|year/Month/block), data=...)? 
compare to your model ?lmer(responses~veg + (veg|year/Month) + 
(veg|block), data= ?)?

3) I am not sure what you mean by ? add a numeric covariate of time 
period to the fixed effects? can you please explain that.

sorry I should have provided more specifics about my spread sheet setup:
block: 1, 2, 3, 4
plot: a, b, c, d, e, f, g, h, I, j, k, l
veg: E, S, U
depth: 20, 40
Month: 5, 6, 7, 8, 9
year: 2012, 2013, 2014

Mainly I am interested in the main effects and interactions of veg*depth 
and I need to account for the fact that I have multiple readings from 
the sampling plots. I regarded it useful to think of it as a split plot 
setup with block divided into 3 veg treatments which each are split into 
two depth treatments. Samples from each exact depth point are taken 
repeatedly for 5 times throughout the year for 3 years. Does plot need 
to be included in the model?

As for seasonal trends: each year the measured values increase over the 
course of the year, but the slopes of this increase seem to vary between 
years. So, additionally it might be interesting to determine whether the 
slopes of the seasonal trends differ between years but that can possibly 
be done in a separate analyzes.

Thank you so much,
Lena