I’ve have been working with a mixed model (glmmTMB) to analyse the abundance of snails in dependency of several categorical predictors. The data was measured twice in the same sample sites in two different years (YEAR) and at 11 different farms (FARM).
So far, I have been using YEAR and FARM as random effects, but the number of two levels seems not sufficient for a random effect, as it has been discussed by several authors, e.g., http://bbolker.github.io/mixedmodels-misc/glmmFAQ.html#should-i-treat-factor-xxx-as-fixed-or-random.
I’ve come across the recommendation to use a low-level explanatory factor as a fixed effect instead, however, as I have done a repeated measurement in the same sample sites (YEAR), I think this would violate the assumption of independence of observations. I have been looking for alternative ways to handle this, but without success so far, so any advice or corrections would be highly appreciated.
Observations from the same farm are very variable, as well as observations from the same year. Intraclass correlation coefficients for these groups are also very low. This could justify using YEAR as a fixed effect if I understand correctly?
– Sonja Mar 24 '21 at 09:47