Package: mlmoderator 0.2.1
mlmoderator: Probing, Plotting, and Interpreting Multilevel Interaction Effects
Provides a unified workflow for probing, plotting, and assessing the robustness of cross-level interaction effects in two-level mixed-effects models fitted with 'lme4' (Bates et al., 2015) <doi:10.18637/jss.v067.i01>. Implements simple slopes analysis following Aiken and West (1991, ISBN:9780761907121), Johnson-Neyman intervals following Johnson and Fay (1950) <doi:10.1007/BF02288864> and Bauer and Curran (2005) <doi:10.1207/s15327906mbr4003_5>, and grand- or group-mean centering as described in Enders and Tofighi (2007) <doi:10.1037/1082-989X.12.2.121>. Includes a slope variance decomposition that separates fixed-effect uncertainty from random-slope variance (tau11), a contour surface plot of predicted outcomes over the full predictor-by-moderator space, and robustness diagnostics comprising intraclass correlation coefficient shift analysis and leave-one-cluster-out (LOCO) stability checks. Designed for researchers in education, psychology, biostatistics, epidemiology, organizational science, and other fields where outcomes are clustered within higher-level units.
Authors:
mlmoderator_0.2.1.tar.gz
mlmoderator_0.2.1.zip(r-4.7)mlmoderator_0.2.1.zip(r-4.6)mlmoderator_0.2.1.zip(r-4.5)
mlmoderator_0.2.1.tgz(r-4.6-any)mlmoderator_0.2.1.tgz(r-4.5-any)
mlmoderator_0.2.1.tar.gz(r-4.6-any)mlmoderator_0.2.1.tar.gz(r-4.5-any)
mlmoderator_0.2.1.tgz(r-4.5-emscripten)
mlmoderator.pdf |mlmoderator.html✨
mlmoderator/json (API)
| # Install 'mlmoderator' in R: |
| install.packages('mlmoderator', repos = c('https://causalfragility-lab.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/causalfragility-lab/mlmoderator/issues
- school_data - Simulated school achievement dataset
Last updated from:d082a04529. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 189 | ||
| source / vignettes | OK | 255 | ||
| linux-release-x86_64 | OK | 176 | ||
| macos-release-arm64 | OK | 182 | ||
| macos-oldrel-arm64 | OK | 172 | ||
| windows-devel | OK | 179 | ||
| windows-release | OK | 138 | ||
| windows-oldrel | OK | 135 | ||
| wasm-release | OK | 137 |
Exports:mlm_centermlm_jnmlm_plotmlm_probemlm_sensitivitymlm_summarymlm_surfacemlm_variance_decomp
Dependencies:bootclicpp11farverggplot2gluegtableisobandlabelinglatticelifecyclelme4MASSMatrixminqanlmenloptrR6rbibutilsRColorBrewerRcppRcppEigenRdpackreformulasrlangS7scalesvctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Center variables for multilevel modeling | mlm_center |
| Johnson-Neyman interval for multilevel two-way interactions | mlm_jn |
| Publication-ready interaction plot for multilevel models | mlm_plot |
| Probe simple slopes from a multilevel interaction | mlm_probe |
| Robustness diagnostics for cross-level interaction effects | mlm_sensitivity |
| Summary table for a multilevel moderation effect | mlm_summary |
| Contour plot of predicted outcomes over the predictor x moderator space | mlm_surface |
| Decompose uncertainty in the simple slope of a multilevel interaction | mlm_variance_decomp |
| Plot a Johnson-Neyman interval from a multilevel model | plot.mlm_jn |
| Plot robustness diagnostics for a cross-level interaction | plot.mlm_sensitivity |
| Plot the variance decomposition of simple slopes | plot.mlm_variance_decomp |
| Simulated school achievement dataset | school_data |
