Closed florianhartig closed 2 years ago
It's expected that Pearson residuals can show weird shapes, in particular when we get towards small values of count incidence, where Poisson / NB become strongly assymetric, see beginning of DHARMa vignette. It's a good example for why diagnosing misfit based on Pearson is problematic. You should ignore the pattern in the Pearson residuals.
The DHARMa residuals look OK. The increasing pattern is a bit weird, not sure why this occurs. Maybe plot res ~ predictors to explore.
With a NB, zero-inflation will not necessarily show up in the ZIP test (see comments in the help / vignette), therefore you should additionally test against a model with a ZIP term using a LRT or AIC/BIC. Given that you did this, and there was no improvement, I don't think you have a problem with zero-inflation. The mere fact that you have a lot of zeros doesn't mean that you need a ZIP model, zeros can easily also arise through low predicted incidence.
From a DHARMa user via email: