DHARMa: 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', 'GLMMadaptive', and 'spaMM'; phylogenetic linear models from 'phylolm' (classes 'phylolm' and 'phyloglm'); 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, phylogenetic and temporal autocorrelation.

Version: 0.4.7
Depends: R (≥ 3.0.2)
Imports: stats, graphics, utils, grDevices, Matrix, parallel, gap, lmtest, ape, qgam (≥ 1.3.2), lme4
Suggests: knitr, testthat (≥ 3.0.0), rmarkdown, KernSmooth, sfsmisc, MASS, mgcv, mgcViz (≥ 0.1.9), spaMM (≥ 3.2.0), GLMMadaptive, glmmTMB (≥ 1.1.2.3), phylolm (≥ 2.6.5)
Enhances: phyr, rstan, rjags, BayesianTools
Published: 2024-10-18
DOI: 10.32614/CRAN.package.DHARMa
Author: Florian Hartig ORCID iD [aut, cre], Lukas Lohse [ctb], Melina de Souza leite [ctb]
Maintainer: Florian Hartig <florian.hartig at biologie.uni-regensburg.de>
BugReports: https://github.com/florianhartig/DHARMa/issues
License: GPL (≥ 3)
URL: http://florianhartig.github.io/DHARMa/
NeedsCompilation: no
Materials: README NEWS
In views: MixedModels
CRAN checks: DHARMa results

Documentation:

Reference manual: DHARMa.pdf
Vignettes: The import package (source, R code)
DHARMa for Bayesians (source, R code)

Downloads:

Package source: DHARMa_0.4.7.tar.gz
Windows binaries: r-devel: DHARMa_0.4.7.zip, r-release: DHARMa_0.4.7.zip, r-oldrel: DHARMa_0.4.7.zip
macOS binaries: r-release (arm64): DHARMa_0.4.7.tgz, r-oldrel (arm64): DHARMa_0.4.7.tgz, r-release (x86_64): DHARMa_0.4.7.tgz, r-oldrel (x86_64): DHARMa_0.4.7.tgz
Old sources: DHARMa archive

Reverse dependencies:

Reverse imports: BayesianTools, bizicount, eDITH, insurancerating, regressinator
Reverse suggests: easystats, ecostats, ewp, GLMMadaptive, GLMMcosinor, glmmTMB, performance, phyr, qra, sdmTMB, see

Linking:

Please use the canonical form https://CRAN.R-project.org/package=DHARMa to link to this page.