Skip to content

DHARMa

0.5.0

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

26packages depend
291.4Kdownloads / year
71.0%test coverage
8/13checks pass

Overview

About
Maintained by Florian HartigFirst published 2016-08-2629 releasesCRAN page ↗GitHub ↗

"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

CRAN checks
5NOTE8OK
Failing flavors
  • 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
Slowest check: 6.9 min · r-release-macos-x86_64
Code health
Yes
Tests · ratio 0.57
71.0%
Coverage · measured lines
100%
Documentation · exports
11
Dependencies · direct
Check history
  • NOTE2026-07-16
    10 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
94%
Documented parameters
96%
Return-value docs
15%
References docs
7%

Downloads

291.4K
CRAN downloads in the past year
Rank #717 · ~798/day · ~24.3K/mo
Daily download trend is not available in this view yet.
24.9K30 days
79.8K90 days
291.4K1 year
Compare downloads with other packages →
Also on621 r2u114 autocran4.1K conda_forge67 c2d4u

Repository

Repository
258Stars
30Forks
102Open issues
7Open PRs
47Releases
1,277Commits
33Contributors
cranglmmresidualregressionregression-diagnostics
1,277 commits · Last activity 2026-07-21 · 0% stars, 30d

Stars over time

2025-07-04 · 2352026-07-07 · 258

Repository practices

Upstream repositoryBeta

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.

Continuous integration (2)
GitHub ActionsTravis CI
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
Imports (11)
statsgraphicsutilsgrDevicesMatrixparallelgaplmtestapeqgamlme4
LinkingTo (0)
none
Enhances (0)
none

Code & Tests

Datasets

People & History

People (4)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (3)
Contributor · added in 0.3.3.0
Contributor · added in 0.5.0
Contributor · added in 0.4.7
Package Timeline

29 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 0.5.0Latest
    2026-06-01 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.4.7
    2024-10-18 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.4.6
    2022-09-08 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.4.5
    2022-01-16 · diff ↗
  • 0.4.4
    2021-09-28 · diff ↗
  • 0.4.3
    2021-07-07 · diff ↗
  • 0.4.2
    2021-07-05 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.4.1
    2021-04-08 · diff ↗
  • 0.4.0
    2021-03-28 · diff ↗
  • 0.3.4
    2021-03-23 · diff ↗
Show 24 earlier events
  • 0.3.3.0
    2020-09-08 · diff ↗
  • 0.3.2.0
    2020-06-18 · diff ↗
  • 0.3.1
    2020-05-12 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.3.0
    2020-04-20 · diff ↗
  • 0.2.7
    2020-02-06 · diff ↗
  • 0.2.6
    2019-11-26 · diff ↗
  • 0.2.5
    2019-11-18 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.2.4
    2019-03-06 · diff ↗
  • 0.2.3
    2019-02-12 · diff ↗
  • 0.2.2
    2019-01-20 · diff ↗
  • 0.2.1
    2019-01-17 · diff ↗
  • 0.2.0
    2018-06-05 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.1.6
    2018-03-18 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 0.1.5
    2017-03-11 · diff ↗
  • 0.1.4
    2017-03-08 · diff ↗
  • 0.1.3
    2016-12-12 · diff ↗
  • 0.1.2
    2016-11-19 · diff ↗
  • 0.1.1
    2016-11-16 · diff ↗
  • 0.1.0
    2016-08-26
  • R
    R 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
Report a problem with this page →