DHARMa (0.2.4)

0 users

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


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.

Maintainer: Florian Hartig
Author(s): Florian Hartig [aut, cre] (Theoretical Ecology, University of Regensburg, Regensburg, Germany)

License: GPL (>= 3)

Uses: ape, doParallel, foreach, gap, glmmTMB, lme4, lmtest, MASS, mgcv, qrnn, sfsmisc, spaMM, testthat, knitr
Reverse suggests: GLMMadaptive, glmmTMB

Released 9 months ago.

10 previous versions



  (0 votes)


  (0 votes)

Log in to vote.


No one has written a review of DHARMa yet. Want to be the first? Write one now.

Related packages:(20 best matches, based on common tags.)

Search for DHARMa on google, google scholar, r-help, r-devel.

Visit DHARMa on R Graphical Manual.