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.