CRAN/E | DHARMa

DHARMa

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

Installation

About

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', 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.

florianhartig.github.io/DHARMa/
Bug report File report

Key Metrics

Version 0.4.6
R ≥ 3.0.2
Published 2022-09-08 593 days ago
Needs compilation? no
License GPL (≥ 3)
CRAN checks DHARMa results

Downloads

Yesterday 215 0%
Last 7 days 1.811 -29%
Last 30 days 8.392 +4%
Last 90 days 24.077 +4%
Last 365 days 88.289 +7%

Maintainer

Maintainer

Florian Hartig

florian.hartig@biologie.uni-regensburg.de

Authors

Florian Hartig

aut / cre

Lukas Lohse

ctb

Material

README
NEWS
Reference manual
Package source

Vignettes

Vignette for the DHARMa package
DHARMa for Bayesians

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

DHARMa archive

Depends

R ≥ 3.0.2

Imports

stats
graphics
utils
grDevices
Matrix
parallel
gap
lmtest
ape
qgam ≥ 1.3.2
lme4

Suggests

knitr
testthat
rmarkdown
KernSmooth
sfsmisc
MASS
mgcv
mgcViz ≥ 0.1.9
spaMM ≥ 3.2.0
GLMMadaptive
glmmTMB ≥1.1.2.3

Enhances

phyr
rstan
rjags
BayesianTools

Reverse Imports

BayesianTools
bizicount
insurancerating

Reverse Suggests

ecostats
GLMMadaptive
glmmTMB
phyr
qra