I am fitting a glmer
model with poisson error distribution and log link to test the effect of male group (treated, control) on the time spent on a specific reproductive behaviour (seconds, thus integer counts). My random factor is represented by the female identity since the same female is coupled with both a treated and a control group.
glmer<-glmer(behaviour~group + (1|ID_female), family=poisson, data=behaviour)
Since the model is overdispersed: 3364.749 on 12 degrees of freedom (ratio: 280.396), I introduce a second observation level random factor:
glmer<-glmer(behaviour~group + (1|ID_female) + (1|observation),family=poisson, data=behaviour)
In this way I correct for overdispersion (Residual deviance: 3.08 on 11 degrees of freedom, ratio: 0.28), but I get the warning of singular fit:
boundary (singular) fit: see ?isSingular
How could I deal with this in a different way? Thank you very much.