I am trying to fit accuracy data (taking values 0 or 1) using glmer and I am puzzled to observe that the residuals of the model don't have a null mean. Wasn't this the whole point of the optimization..? Does it mean that the model fails to converge although there was no warning message? I observe the same behavior with simple glm models. My data has very high mean accuracy (.88), could it be part of the problem?
An example model:
final<- glmer(acc ~ group*I(soa/10) + group*I(scale(soa*soa)) +
(1 |suj), family=binomial(link="probit") ,data.f, glmerControl(optimizer="bobyqa", optCtrl = list(maxfun = 150000)))
and here the binned plot for fitted vs residuals
binnedplot(predict(final), resid(final), cex.pts=1, col.int="black")
Thank you very much for your answers.
(A reproducible example can be found here)