In my study I was sampling the same sites in different regions for many years. Each site has different properties in each year, which is important for my research question. I want to know, if the properties of the site affect biodiversity on the sites. And I am interested in the interaction of the propterties and the regions.
Overview:
- Biodiversity = response
- Site property = fixed factor, changes every year
- Region = fixed factor , same regions every year
- Site = random effect, is repeatedly sampled in the different sampling years
- Year = random effect, is the factor in which "site" is repeated
At the moment my model looks like this:
mod1 <- lmer(biodiversity~region*siteProperty+(1|Year)+(1|site))
I'm not sure if this accounts for the repeated measures. Alternatively I was thinking about this one, as it includes also the nestedness of the sites in the years, but maybe that is not necessary:
mod2 <- lmer(biodiversity~region*siteProperty+(1|Year)+(1|Year:site))
The problem with this approach is, that it only works if my site properties are not zero. But I have zeros in different properties and I need to analyse their effects as well.
If you need more information, just ask me for. Thanks for your help!