Skip to content

Testing an interaction with a random effect in lmer

2 messages · Reed, Nicola, Ben Bolker

#
Reed, Nicola <nr232 <at> exeter.ac.uk> writes:
I think you want 

 binom~season + (season|group) + (1|individual)

[assuming that individuals are coded uniquely, i.e. you don't have
an 'individual A' in each group]

  If you had enough data to consider testing variation in seasonality
among individuals, you could try

  binom~season + (season|group/individual)


  was the switch from 'individual' above to 'badger' below
a slip?

  Thanks for the clear description.

 Ben Bolker