CRAN

DHARMa 0.2.4

Residual Diagnostics for Hierarchical (Multi-Level / Mixed) Regression Models

Released Mar 6, 2019 by Florian Hartig

This package cannot yet be used with Renjin it depends on other packages which are not available: glmmTMB 0.2.3 An older version of this package is more compatible with Renjin.

Dependencies

glmmTMB 0.2.3 MASS 7.3-51.1 spaMM 2.6.1 doParallel 1.0.14 qrnn 2.0.3 lme4 1.1-21 mgcv 1.8-27 gap 1.1-22 ape 5.2 lmtest 0.9-36 foreach 1.4.4 sfsmisc 1.1-3

The 'DHARMa' package uses a simulation-based approach to create readily interpretable scaled (quantile) residuals for fitted (generalized) linear mixed models. Currently supported are linear and generalized linear (mixed) models from 'lme4' (classes 'lmerMod', 'glmerMod'), 'glmmTMB' and 'spaMM', generalized additive models ('gam' from 'mgcv'), 'glm' (including 'negbin' from 'MASS', but excluding quasi-distributions) and 'lm' model classes. Moreover, externally created simulations, e.g. posterior predictive simulations from Bayesian software such as 'JAGS', 'STAN', or 'BUGS' can be processed as well. The resulting residuals are standardized to values between 0 and 1 and can be interpreted as intuitively as residuals from a linear regression. The package also provides a number of plot and test functions for typical model misspecification problems, such as over/underdispersion, zero-inflation, and residual spatial and temporal autocorrelation.