Hi there!

A short summary of my data:

I have song recordings of 60 birds (multiple recordings per bird). During the research period, some birds had more than one nest. Now I want to find out whether song complexity variables (e.g. song length) are related with reproductive success variables (e.g. brood size). I first added 'male number' (each of the 60 males had a specific and original number) as a random effect.

However, now I'm doubting wether or not to include 'nest number' also as a random effect as is actually is another grouping variable next to 'male number'.

Is this a correct thought and if so, how to include two random factors in my formula. This is how I included it myself in R, but I just want to be sure it's right:

lmer(Clutch_size~Song_length + (1|Nr_male)+(1|Nr_nest), data=dd)

Similar questions and discussions