Package: hlmLab 0.1.0
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).
Authors:
hlmLab_0.1.0.tar.gz
hlmLab_0.1.0.zip(r-4.7)hlmLab_0.1.0.zip(r-4.6)hlmLab_0.1.0.zip(r-4.5)
hlmLab_0.1.0.tgz(r-4.6-any)hlmLab_0.1.0.tgz(r-4.5-any)
hlmLab_0.1.0.tar.gz(r-4.7-any)hlmLab_0.1.0.tar.gz(r-4.6-any)
hlmLab_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
hlmLab/json (API)
| # Install 'hlmLab' in R: |
| install.packages('hlmLab', repos = c('https://causalfragility-lab.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/causalfragility-lab/hlmlab/issues
Last updated from:039879e115. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 138 | ||
| source / vignettes | OK | 174 | ||
| linux-release-x86_64 | OK | 126 | ||
| macos-release-arm64 | OK | 85 | ||
| macos-oldrel-arm64 | OK | 77 | ||
| windows-devel | OK | 86 | ||
| windows-release | OK | 72 | ||
| windows-oldrel | OK | 61 | ||
| wasm-release | OK | 144 |
Exports:hlm_contexthlm_context_plothlm_decomposehlm_decompose_longhlm_icchlm_icc_plothlm_xint_geom
Dependencies:bootclicpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglatticelifecyclelme4magrittrMASSMatrixminqanlmenloptrpillarpkgconfigR6rbibutilsRColorBrewerRcppRcppEigenRdpackreformulasrlangS7scalestibbletidyselectutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Contextual effect for a Level-1 predictor (Mundlak decomposition) | hlm_context |
| Convenience wrapper to plot contextual effects | hlm_context_plot |
| Multilevel variance decomposition (within/between/longitudinal) | hlm_decompose |
| Longitudinal three-level variance decomposition (B-P-W) | hlm_decompose_long |
| Intraclass correlation and design effect from a random-intercept model | hlm_icc |
| Teaching plot for intraclass correlation (ICC) | hlm_icc_plot |
| Geometry of a cross-level interaction (random slopes fan plot) | hlm_xint_geom |
| Plot method for hlm_context objects | plot.hlm_context |
| Plot method for hlm_decompose objects | plot.hlm_decompose |
