Hello, my first question, quite individual, so I find it difficult to relate already answered questions to mine.
I have observed the vegetation development in forests of 5 different areas (area
) in an experimental experiment. The design can be classified according to 3 types of size and distribution (treatment
) including control plot, and the occurrence of deadwood
with 5 types including control plot. For each treatment there is every option of deadwood and vice versa. The data have been collected for 4 years (years
-> 1y-4y). Five microclimate variables (mc1-5
) are included as fixed effects. As random effects I would like to include area
, treatment
and deadwood
.
With regard to vegetation development it is interesting how the effects of microclimate (mc1-5
), but especially of treatment
and deadwood
have changed over the years
. In area
the factor years
should be negligible.
As I understand it, years
and treatment
/deadwood
are nested, because the same plots are examined every year.
My previous attempt to build a model:
glmm <- glmer(species.number ~ mc1 + mc2 + mc3 + mc4 + mc5 +
(1|treatment/years) + (1|deadwood/years) + (1|area),
data=df, family = poisson)
Among other things, I am confused by this actually very good answer that in my case it might be crossed data after all?
Thanks a lot!