DHARMa: residual diagnostics for hierarchical (multi-level/mixed) regression models13 days ago
Motivation | Workflow in DHARMa | Installing, loading and citing the package | Calculating scaled residuals | Plotting the scaled residuals | Goodness-of-fit tests on the scaled residuals | Simulation options | Refit | Conditional vs. unconditional simulations | Integer treatment / randomization | Calculating residuals for groups or subsets | Reproducibility notes, random seed and random state | Interpreting residuals and recognizing misspecification problems | General remarks on interpreting residual patterns and tests | Recognizing over/underdispersion | Residual patterns of over/underdispersion | Formal tests for over/underdispersion | Zero-inflation / k-inflation or deficits | Residual patterns | Formal tests for zero-inflation | Testing generic summary statistics, e.g. for k-inflation or deficits | Heteroscedasticity | Detecting missing predictors or wrong functional assumptions | Residual correlation structures (temporal, spatial, phylogenetic) | Case studies and examples | Budworm example (count-proportion n/k binomial) | Owl example (count data) | Notes on particular data types | Poisson data | Proportional data | Binomial data | Supported packages and frameworks | lm and glm | lme4 | mgcv | gamm4 | glmmTMB | spaMM | GLMMadaptive | phylolm | phyr | brms | Unsupported packages | Importing external simulations (e.g. from Bayesian software or unsupported packages)
DHARMa 0.5.0Florian Hartig, Theoretical Ecology, University of Regensburg websiteDHARMa.Rmd