Skip to content
Prev 15398 / 20628 Next

mixed model?

Joaquin,
It looks like you could use Year and Field as random effects, since there
might be variation in bird abundance across years, and similarly, variation
across fields.

So in this case your model is
Birdmodel<- glmer(Presence~ GrassHeight * ForestCover + (1|Year) +
(1|Field), data=BirdData, family =                  "binomial")

Alternatively you could use Year as a fixed effect, if you are interested
in particular years.
Another option is to include interaction terms as random effects, eg
(1|Field:GrassHeight), to allow the effect of GrassHeight to vary across
fields.


On Fri, Apr 28, 2017 at 9:32 AM, Joaqu?n Aldabe <joaquin.aldabe at gmail.com>
wrote: