Diagnostic Tools for Hierarchical (Multilevel) Linear Models
Overview
A suite of diagnostic tools for hierarchical (multilevel) linear models. The tools include not only leverage and traditional deletion diagnostics (Cook's distance, covratio, covtrace, and MDFFITS) but also convenience functions and graphics for residual analysis. Models can be fit using either lmer in the 'lme4' package or lme in the 'nlme' package.
- Added a
NEWS.mdfile to track changes to the package. cooks.distance()andmdffits()withinclude.attr = TRUEnow returns a tibble with column names for the fixed effects in agreement with the fixef() output.- First columns of
hlm_resid()output is now.idto avoid conflicts withidcolumns
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
Show 3 earlier changesHide 3 earlier changes
- WARNING11 OK, 3 WARNING2026-04-22
- ERROR10 OK, 3 WARNING, 1 ERROR2026-04-18
- WARNING11 OK, 3 WARNING2026-03-10
Documentation
- Help pages
- 26includes a package overview page
- Examples that run
- 91%10 run in a plain check · 1 never run
- Exported functions with examples
- 56%
- Documented parameters
- 100%
- Return-value docs
- 50%
- Help pages citing references
- 62%
- Influence Diagnostics HTML
- Residual Diagnostics HTML
- Updated JSS code HTML
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 182
- Median days to close, 50 most recently updated closed PRs
- 0
8 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/aloy/hlmdiag on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-06-26Named in .Rbuildignore: CLAUDE.mdCommits: at least 2 crediting it in the message
- Claude Sonnet 4.62 commits · Jul 2026
Dependencies
Installing HLMdiag adds 40 packages (22 with compiled code, 33 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, Rcpp 1.8 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.5.1Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.5.02021-05-02 · diff ↗ ·
removed 3 exports
HLMresid, diagnostics, group_qqnormadded 2 exports
resid_conditional, resid_marginal - 0.4.02020-12-14 · diff ↗ ·
removed 1 export
ggplot_qqnormadded 5 exports
extract_design, hlm_augment, hlm_influence, hlm_resid, pull_resid - RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- 0.3.1
- 0.3.02015-06-23 · diff ↗ ·
removed 10 exports
HLMresid.default, LSresids.default, case_delete.default, covratio.default, covtrace.default, ggplot_qqnorm, leverage.default, mdffits.default, rvc.default, rotate_ranef.default
Show 20 earlier eventsHide 20 earlier events
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 0.2.52014-01-31 · diff ↗
- 0.2.42014-01-16 · diff ↗
- 0.2.3
- 0.2.2
- RR 3.0.0 released · 2013-04-03
- 0.2.12013-03-26 · diff ↗
- 0.2.02013-02-18 · diff ↗ ·
removed 9 exports
cooksd_hlm, covratio_hlm, covtrace_hlm, ggplot_ppnorm, mdffits_hlm, ppnormBand, .sampleQuantiles, .parse_formula, .parse_fadded 10 exports
covratio, covratio.default, covtrace, covtrace.default, leverage, leverage.default, mdffits, mdffits.default, rvc.default, varcomp.mer - 0.1.62012-09-01 · diff ↗
- RR 2.15.0 released · 2012-03-30
- 0.1.52012-03-06 · diff ↗
- 0.1.42012-01-28 · diff ↗
- 0.1.32012-01-03 · diff ↗
- 0.1.2
- 0.1.12011-11-04 · diff ↗ ·
removed 1 export
pattern:^[^\\.]added 16 exports
adjust_lmList, case_delete, compare_eb_ls, cooksd_hlm, covratio_hlm, covtrace_hlm, diagnostics, dotplot_diag, ggplot_qqnorm, ggplot_ppnorm, group_qqnorm, LSresids, mdffits_hlm, ppnormBand, rvc, .sampleQuantiles - RR 2.14.0 released · 2011-10-31
- RR 2.13.0 released · 2011-04-13
- 0.1.02011-03-22
- RR 2.12.0 released · 2010-10-15
Package metadata
- First published
- 2011-03-22
- Total releases
- 18 / 15 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 107 KB / 4 files
- Download size
- 399 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("HLMdiag")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v056.i05.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.