I am working on binomial and betabinomial models using glmmTMB (also on negative binomial) and I am using DHARMa package to test the residuals. But I am having a problem with the outcome. All of the test show that N.s. results, when I test for outliners, dispersion and zero-inflation, seems like there are no problems in my model. Also the QQplot seems good, but for all three models, on residual vs. predicted plot, there are some outliners (2-3). Why?And what should I do? Ignore them and say that model is correct or I should do something to the data?

enter image description here


1 Answer 1


From the DHARMa vignette:

Simulation outliers (data points that are outside the range of simulated values) are highlighted as red stars. These points should be carefully interpreted, because we actually don’t know “how much” these values deviate from the model expectation. Note also that the probability of an outlier depends on the number of simulations, so whether the existence of outliers is a reason for concern depends also on the number of simulations.

The few points you have in your plot don't look that concerning to me, but it's hard to tell without a bit more context.


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.