Skip to content

Binomial glmer(): appropriateness of link and influential points

4 messages · Ben Bolker, Hedyeh Ahmadi, John Maindonald

#
On 4/22/21 11:45 AM, Hedyeh Ahmadi wrote:
Try the DHARMa package, which uses simulated quantile residuals to 
overcome this problem.
I would think so (to be honest, most of the advice about model 
diagnostics is based on "this works for linear models and should work, 
at least asymptotically, for GLM(M)s as well"
#
Thank you for the DHARMa suggestion - I tried it but I am not sure how to interpret the plot from simulateResiduals(). I am getting the attached plot and I think this is pretty linear so is this a pass?

Best,

Hedyeh Ahmadi, Ph.D.
Statistician
Keck School of Medicine
Department of Preventive Medicine
University of Southern California

Postdoctoral Scholar
Institute for Interdisciplinary Salivary Bioscience Research (IISBR)
University of California, Irvine

LinkedIn
www.linkedin.com/in/hedyeh-ahmadi<http://www.linkedin.com/in/hedyeh-ahmadi>
<http://www.linkedin.com/in/hedyeh-ahmadi><http://www.linkedin.com/in/hedyeh-ahmadi>
#
My comments, which were a bit off the cuff without looking at your queries
with all the care that was desirable, were designed to highlight issues with
binomial models.  Also, for checking purposes you want to plot partial
residuals against explanatory variables in turn.  As Ben suggests, plots
using DHARMa can be a good way to go.

Alternatives to fitting a mixed model are, in your case? a model with quasibinomial
error, or a betabinomial. A betabinomial using glmmTMB allows you to model the
scale parameter.  Those sorts of abilities are also available (and plots of  simulated
quantile residuals) in the gamlss package.  Which model is more appropriate will
depend on how the within subject component of variance (for the mixed model),
or the scale parameter varies (if at all) with the fitted value.

It is worth checking these alternatives.

John Maindonald             email: john.maindonald at anu.edu.au<mailto:john.maindonald at anu.edu.au>
On 23/04/2021, at 14:02, Hedyeh Ahmadi <hedyehah at usc.edu<mailto:hedyehah at usc.edu>> wrote:
Thank you for the DHARMa suggestion - I tried it but I am not sure how to interpret the plot from simulateResiduals(). I am getting the attached plot and I think this is pretty linear so is this a pass?

Best,

Hedyeh Ahmadi, Ph.D.
Statistician
Keck School of Medicine
Department of Preventive Medicine
University of Southern California

Postdoctoral Scholar
Institute for Interdisciplinary Salivary Bioscience Research (IISBR)
University of California, Irvine

LinkedIn
www.linkedin.com/in/hedyeh-ahmadi<http://www.linkedin.com/in/hedyeh-ahmadi><http://www.linkedin.com/in/hedyeh-ahmadi>
<http://www.linkedin.com/in/hedyeh-ahmadi><http://www.linkedin.com/in/hedyeh-ahmadi>
3 days later
#
Hi All,
Thank you for all your help on this - I finally found some good plots along with interpretation help and I thought I would share the link here just in case if anyone is interested:

https://github.com/florianhartig/DHARMa/issues/278
[https://opengraph.githubassets.com/c380efaec2f6833c58459e212b8ce5e36881f692f8c91082601c58e1409bc49d/florianhartig/DHARMa/issues/278]<https://github.com/florianhartig/DHARMa/issues/278>
Interpretation of DHARMa plot for logistic regression ? Issue #278 ? florianhartig/DHARMa<https://github.com/florianhartig/DHARMa/issues/278>
Question from a user: I am running a glmer() model with binomial/logit link and I assume that the smoother dash line (plot attached) should match the horizontal line at 0.50 closely so based on tha...
github.com



Best,

Hedyeh Ahmadi, Ph.D.
Statistician
Keck School of Medicine
Department of Preventive Medicine
University of Southern California

Postdoctoral Scholar
Institute for Interdisciplinary Salivary Bioscience Research (IISBR)
University of California, Irvine

LinkedIn
www.linkedin.com/in/hedyeh-ahmadi<http://www.linkedin.com/in/hedyeh-ahmadi>
<http://www.linkedin.com/in/hedyeh-ahmadi><http://www.linkedin.com/in/hedyeh-ahmadi>