Package: HLMdiag 0.5.0

Adam Loy

HLMdiag: Diagnostic Tools for Hierarchical (Multilevel) Linear Models

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.

Authors:Adam Loy [cre, aut], Jaylin Lowe [aut], Jack Moran [aut]

HLMdiag_0.5.0.tar.gz
HLMdiag_0.5.0.tar.gz(r-4.5-noble)HLMdiag_0.5.0.tar.gz(r-4.4-noble)
HLMdiag_0.5.0.tgz(r-4.4-emscripten)HLMdiag_0.5.0.tgz(r-4.3-emscripten)
HLMdiag.pdf |HLMdiag.html
HLMdiag/json (API)
NEWS

# Install 'HLMdiag' in R:
install.packages('HLMdiag', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/aloy/hlmdiag/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:
  • ahd - Methylprednisolone data
  • autism - Autism data
  • radon - Radon data
  • wages - Wages for male high school dropouts

openblascpp

5.12 score 7 packages 168 scripts 1.1k downloads 4 mentions 19 exports 47 dependencies

Last updated 4 years agofrom:da2086d275. Checks:OK: 1 NOTE: 1. Indexed: no.

TargetResultDate
Doc / VignettesOKDec 14 2024
R-4.5-linux-x86_64NOTEDec 14 2024

Exports:adjust_lmListcase_deletecompare_eb_lscovratiocovtracedotplot_diagextract_designhlm_augmenthlm_influencehlm_residleverageLSresidsmdffitspull_residresid_conditionalresid_marginalrotate_ranefrvcvarcomp.mer

Dependencies:clicolorspacecpp11diagonalsdplyrfansifarvergenericsggplot2ggrepelgluegtablehmsisobandjanitorlabelinglatticelifecyclelubridatemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigplyrpurrrR6RColorBrewerRcppRcppArmadilloreshape2rlangscalessnakecasestringistringrtibbletidyrtidyselecttimechangeutf8vctrsviridisLitewithr

Influence Diagnostics

Rendered frominfluence_diagnostics.Rmdusingknitr::rmarkdown_notangleon Dec 14 2024.

Last update: 2021-05-02
Started: 2020-12-14

Residual Diagnostics

Rendered fromhlm_resid.Rmdusingknitr::rmarkdown_notangleon Dec 14 2024.

Last update: 2020-12-14
Started: 2020-12-14

Updated JSS code

Rendered fromjss_update.Rmdusingknitr::rmarkdown_notangleon Dec 14 2024.

Last update: 2021-05-02
Started: 2020-12-14

Readme and manuals

Help Manual

Help pageTopics
Fitting Common Models via 'lm'adjust_lmList adjust_lmList,formula,data.frame-method adjust_lmList.formula
Methylprednisolone dataahd
Autism dataautism
Case Deletion for 'mer'/'lmerMod' objectscase_delete case_delete.default case_delete.lme case_delete.lmerMod case_delete.mer
Visually comparing shrinkage and LS estimatescompare_eb_ls
Influence on precision of fixed effects in HLMscovratio covratio.default covratio.lme covratio.lmerMod covratio.mer covtrace covtrace.default covtrace.lme covtrace.lmerMod covtrace.mer
Dot plots for influence diagnosticsdotplot_diag
Extracting covariance matrices from lmeextract_design
Calculating residuals and influence diagnostics for HLMs 'hlm_augment' is used to compute residuals, fitted values, and influence diagnostics for a hierarchical linear model. The residuals and fitted values are computed using Least Squares(LS) and Empirical Bayes (EB) methods. The influence diagnostics are computed through one step approximations.hlm_augment hlm_augment.default hlm_augment.lmerMod
Calculating influence diagnostics for HLMshlm_influence hlm_influence.default hlm_influence.lme hlm_influence.lmerMod
Calculating residuals from HLMshlm_resid hlm_resid.default hlm_resid.lme hlm_resid.lmerMod
Diagnostic tools for hierarchical (multilevel) linear modelsHLMdiag package-HLMdiag
Defunct functions in package HLMdiagdiagnostics ggplot_qqnorm group_qqnorm HLMdiag-defunct HLMresid HLMresid.default HLMresid.lmerMod HLMresid.mer
Deprecated functions in HLMdiagHLMdiag-deprecated
Leverage for HLMsleverage leverage.default leverage.lme leverage.lmerMod leverage.mer
Calculating least squares residualsLSresids LSresids.default LSresids.lme LSresids.lmerMod LSresids.mer
Influence on fixed effects of HLMscooks.distance cooks.distance.lme cooks.distance.lmerMod cooks.distance.mer mdffits mdffits.default mdffits.lme mdffits.lmerMod mdffits.mer
Computationally Efficient HLM Residualspull_resid pull_resid.default pull_resid.lme pull_resid.lmerMod
Radon dataradon
Conditional residualsresid_conditional resid_conditional.default resid_conditional.lme resid_conditional.lmerMod
Marginal residualsresid_marginal resid_marginal.default resid_marginal.lme resid_marginal.lmerMod
Random effects residualsresid_ranef
Calculate s-dimensional rotated random effectsrotate_ranef rotate_ranef.default rotate_ranef.lme rotate_ranef.lmerMod rotate_ranef.mer
Relative variance change for HLMsrvc rvc.default rvc.lme rvc.lmerMod rvc.mer
Extracting variance componentsvarcomp.mer
Wages for male high school dropoutswages