hlmLab: Hierarchical Linear Modeling with Visualization and Decomposition

Provides functions for visualization and decomposition in hierarchical linear models (HLM) for applications in education, psychology, and the social sciences. Includes variance decomposition for two-level and three-level data structures following Snijders and Bosker (2012, ISBN:9781849202015), intraclass correlation (ICC) estimation and design effect computation as described in Shrout and Fleiss (1979) <doi:10.1037/0033-2909.86.2.420>, and contextual effect decomposition via the Mundlak (1978) <doi:10.2307/1913646> specification distinguishing within- and between-cluster components. Supports visualization of random slopes and cross-level interactions following Hofmann and Gavin (1998) <doi:10.1177/014920639802400504> and Hamaker and Muthen (2020) <doi:10.1037/met0000239>. Multilevel models are estimated using 'lme4' (Bates et al., 2015 <doi:10.18637/jss.v067.i01>). An optional 'Shiny' application enables interactive exploration of model components and parameter variation. The implementation follows the multilevel modeling framework of Raudenbush and Bryk (2002, ISBN:9780761919049).

Version: 0.1.0
Depends: R (≥ 4.1.0)
Imports: dplyr, ggplot2 (≥ 3.4.0), lme4, scales, stats
Suggests: shiny, spelling, testthat (≥ 3.0.0)
Published: 2026-04-16
DOI: 10.32614/CRAN.package.hlmLab (may not be active yet)
Author: Subir Hait ORCID iD [aut, cre]
Maintainer: Subir Hait <haitsubi at msu.edu>
BugReports: https://github.com/causalfragility-lab/hlmLab/issues
License: MIT + file LICENSE
URL: https://github.com/causalfragility-lab/hlmLab
NeedsCompilation: no
Language: en-US
Materials: README
CRAN checks: hlmLab results

Documentation:

Reference manual: hlmLab.html , hlmLab.pdf

Downloads:

Package source: hlmLab_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=hlmLab to link to this page.