-
-
Notifications
You must be signed in to change notification settings - Fork 103
Description
The current selection of plots returned by check_model() for GLMs aren't ideal in a few ways.
1. They are missing a linearity check (fitted vs residuals). For binomial models, this should be a called to binned_residuals(). For other families, the standard check is fine.
2. For binomial models, the constant variance plot should be omitted.
3. For binomial models, the residual QQ plot is hard to interpret.
4. For non-bernoulli models, we should include a plot for checking overdispersion.
For the latter few points, the DHARMa package provides an easy-to-interpret approach for checking distributional assumptions from qq plots and problems with fitted vs residual plots using quantile residuals. We might consider soft-importing DHARMa or re-implementing those approaches.
https://cran.r-project.org/web/packages/DHARMa/vignettes/DHARMa.html
florianhartig/DHARMa#33