I am an undergraduate student . In this level , we aren't taught Multilevel Logistic Regression. But my project topic is Multilevel Logistic Regression and I am working with only two-level . What I know only to use the glmer() function in R to estimate the fixed and random effect parameters . But I don't know , when to use which types of residuals , though R has given the reference Davison, A. C. and Snell, E. J. (1991) Residuals and diagnostics for the usages of each type , I didn't get the pdf of the reference .

Also I haven't any theoretical background of estimation procedure .

Would you please give me some online reference so that I can conduct my project issue sample size determination in Multilevel Logistic Regression fairly well ?

Thanks ! Regards .

  • 1
    $\begingroup$ Why do you want to use residuals from a logistic regression analysis, more or less a multilevel model? You hardly can do any of the diagnostic checking in either case. $\endgroup$
    – AdamO
    Aug 18, 2015 at 22:35

1 Answer 1


I think you can refer to residuals.merMod(). The default one for glmer(), deviance, makes more sense. More examples are shown in this related question: What do the residuals in a logistic regression mean?

The default residual type varies between lmerMod and glmerMod objects: they try to mimic residuals.lm and residuals.glm respectively. In particular, the default type is "response", i.e. (observed-fitted) for lmerMod objects vs. "deviance" for glmerMod objects. type="partial" is not yet implemented for either type.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.