In this post @Ben Bolker wrote in his answer that for the interaction between station
and day
we could write station+(1|day/station)
, but I don't understand how this is possible. In the OP, day
is a random effect and station
is fixed, but writing (1|day/station)
means you are nesting station
within day
, in which case you are treating both station
and day
as random effects. My understanding is that nesting can only apply to random effects, according to @Tim's comment here.
Also in @John's answer he mentions in the end that we could create a model like
lmer(y ~ station + (tow*day|station), data = dat)
but isn't this specifying station
as a random effect (ie right side of | and within parentheses)? Shouldn't it rather be lmer(y ~ station + (station|tow*day), data = dat)
?
Am I missing something?