I was reading this post which is relevant to a research project I'm working on now. I think that I understand the difference between crossed and nested random effects, e.g. as described here.
The first post I linked asks about differences between the random effects structure Ticks~(1|Year)+(1|Site)
vs. Ticks~(1|Year)+(1|Site)+(1|Year:Site)
, i.e. allowing the number of ticks at each Site
to vary across years, in addition to varying across years and across sites. Since there are multiple observations of each site during each year, this model is estimable and more flexible than the model that omits the term (1|Year:Site)
.
While the excellent GLMM FAQ does not mention interactions between grouping variables, this is mentioned in another writing by Ben Bolker here, which also describes this term as allowing the effect of each year to vary by site.
I'm trying to understand more about this interaction between the grouping variables and when it might be necessary, and whether this differs between terms with a 1
on the LHS or a variable on the LHS of the grouping term. Assuming such a model is estimable, under what circumstances would one want to use the model y ~ (x|f) + (x|g)
instead of y ~ (x|f) + (x|g) + (x|f:g)
?
From a lot of what I've read, it seems that the former model is often recommended for fully crossed designs. Does this justify leaving out the extra term? Why?
Am I just overthinking this problem, and the inclusion of this term should be based on domain knowledge and the specific data one has?
anova()
in R) to determine whether the added complexity of the(1|f:g)
intercept fits the data better than the less complex model without it? If you have substantive reasons to prefer the more complex model, then so be it. But you can also use the LRT to help you if you don't have such reasons. $\endgroup$