Package: hlmLab 0.2.0.9000
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, with the uncertainty of the contextual contrast obtained from the full fixed-effect covariance matrix. Teaching displays cover simulated intraclass correlations, partial pooling of cluster means, random-slope heterogeneity, and cross-level interaction with an observed Level-2 moderator, 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.2.0.9000.tar.gz
hlmLab_0.2.0.9000.zip(r-4.7-any)hlmLab_0.2.0.9000.zip(r-4.6-any)hlmLab_0.2.0.9000.zip(r-4.5-any)
hlmLab_0.2.0.9000.tgz(r-4.6-any)hlmLab_0.2.0.9000.tgz(r-4.5-any)
hlmLab_0.2.0.9000.tar.gz(r-4.7-any)hlmLab_0.2.0.9000.tar.gz(r-4.6-any)
hlmLab_0.2.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
hlmLab/json (API)
| # Install 'hlmLab' in R: |
| install.packages('hlmLab', repos = c('https://subirhait.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/subirhait/hlmlab/issues
Last updated from:ff72875f98. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 147 | ||
| source / vignettes | OK | 215 | ||
| linux-release | OK | 143 | ||
| macos-release | OK | 105 | ||
| macos-oldrel | OK | 88 | ||
| windows-devel | OK | 98 | ||
| windows-release | OK | 88 | ||
| windows-oldrel | OK | 80 | ||
| wasm-release | OK | 118 |
Exports:hlm_contexthlm_context_plothlm_cross_level_plothlm_decomposehlm_decompose_longhlm_icchlm_icc_demohlm_icc_plothlm_random_slope_plothlm_shrinkage_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 |
| Cross-level interaction with an observed Level-2 moderator | hlm_cross_level_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 |
| What different intraclass correlations look like | hlm_icc_demo |
| Teaching plot for intraclass correlation (ICC) | hlm_icc_plot |
| Cluster-specific slopes from a random-slope model | hlm_random_slope_plot |
| Partial pooling: raw cluster means and multilevel estimates | hlm_shrinkage_plot |
| Geometry of a cross-level interaction (deprecated) | hlm_xint_geom |
| Plot method for hlm_context objects | plot.hlm_context |
| Plot method for hlm_decompose objects | plot.hlm_decompose |