DHARMa
0.5.0Residual Diagnostics for Hierarchical (Multi-Level / Mixed) Regression Models
Overview
"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', 'spaMM', and 'brms' (simple models); 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, temporal and phylogenetic autocorrelation."
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE r-devel-linux-x86_64-fedora-clang
- NOTE r-devel-linux-x86_64-fedora-gcc
- NOTE r-devel-windows-x86_64
- NOTE2026-07-1610 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0812 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 94%
- Documented parameters
- 96%
- Return-value docs
- 15%
- References docs
- 7%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Repository practices
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/florianhartig/dharma on 2026-07-19.
Dependencies
Code & Tests
Datasets
People & History
29 releases. Pick two to compare their code metrics. R releases are shown for context.
- 0.5.0Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.4.72024-10-18 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.4.62022-09-08 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.4.52022-01-16 · diff ↗
- 0.4.42021-09-28 · diff ↗
- 0.4.32021-07-07 · diff ↗
- 0.4.22021-07-05 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.4.12021-04-08 · diff ↗
- 0.4.02021-03-28 · diff ↗
- 0.3.42021-03-23 · diff ↗
Show 24 earlier events
- 0.3.3.02020-09-08 · diff ↗
- 0.3.2.02020-06-18 · diff ↗
- 0.3.12020-05-12 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.3.02020-04-20 · diff ↗
- 0.2.72020-02-06 · diff ↗
- 0.2.62019-11-26 · diff ↗
- 0.2.52019-11-18 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.2.42019-03-06 · diff ↗
- 0.2.32019-02-12 · diff ↗
- 0.2.22019-01-20 · diff ↗
- 0.2.12019-01-17 · diff ↗
- 0.2.02018-06-05 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.1.62018-03-18 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 0.1.52017-03-11 · diff ↗
- 0.1.42017-03-08 · diff ↗
- 0.1.32016-12-12 · diff ↗
- 0.1.22016-11-19 · diff ↗
- 0.1.12016-11-16 · diff ↗
- 0.1.02016-08-26
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2016-08-26
- Total releases
- 29 / 10 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 3.5 KB / 1 file
- Download size
- 3.4 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet