The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
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.
| Version: | 0.2.1 |
| Depends: | R (≥ 4.1.0) |
| Imports: | lme4, ggplot2, stats, utils, grDevices, rlang |
| Suggests: | testthat (≥ 3.0.0), dplyr, tibble, knitr, rmarkdown, patchwork |
| Published: | 2026-04-03 |
| DOI: | 10.32614/CRAN.package.mlmoderator |
| Author: | Subir Hait |
| Maintainer: | Subir Hait <haitsubi at msu.edu> |
| BugReports: | https://github.com/causalfragility-lab/mlmoderator/issues |
| License: | MIT + file LICENSE |
| URL: | https://github.com/causalfragility-lab/mlmoderator |
| NeedsCompilation: | no |
| Language: | en-US |
| Materials: | README |
| CRAN checks: | mlmoderator results |
| Reference manual: | mlmoderator.html , mlmoderator.pdf |
| Vignettes: |
Cross-Level Interaction Workflow (source, R code) Getting Started with mlmoderator (source, R code) |
| Package source: | mlmoderator_0.2.1.tar.gz |
| Windows binaries: | r-devel: mlmoderator_0.2.1.zip, r-release: mlmoderator_0.2.0.zip, r-oldrel: mlmoderator_0.2.0.zip |
| macOS binaries: | r-release (arm64): mlmoderator_0.2.1.tgz, r-oldrel (arm64): not available, r-release (x86_64): mlmoderator_0.2.0.tgz, r-oldrel (x86_64): mlmoderator_0.2.0.tgz |
| Old sources: | mlmoderator archive |
Please use the canonical form https://CRAN.R-project.org/package=mlmoderator to link to this page.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.