Utility Functions for Multilevel Mediation Analysis
Bootstrapping multilevel mediation model (without boot package)
Boot function for (moderated) mediation with 2-level multilevel models
Custom function for residual bootstrap for (moderated) multilevel medi...
Post-processing of bootstrap results from boot.modmed.mlm
Post-processing of results from modmed.mlm.brms
Post-processing of a model fit with modmed.mlm
Custom model fitting function for a 1-1-1 (moderated) mediation for th...
Model definition and estimation function for two-level (moderated) med...
Stacks data in the style of Bauer-Preacher-Gil for multilevel mediatio...
The ultimate goal is to support 2-2-1, 2-1-1, and 1-1-1 models for multilevel mediation, the option of a moderating variable for either the a, b, or both paths, and covariates. Currently the 1-1-1 model is supported and several options of random effects; the initial code for bootstrapping was evaluated in simulations by Falk, Vogel, Hammami, and Miočević (2024) <doi:10.3758/s13428-023-02079-4>. Support for Bayesian estimation using 'brms' comprises ongoing work. Currently only continuous mediators and outcomes are supported. Factors for any predictors must be numerically represented.