multilevelmediation: Utility Functions for Multilevel Mediation Analysis

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.

Getting started

Package details

AuthorCarl F. Falk [cre, aut], Todd Vogel [aut], Sarah Hammami [aut], Milica Miočević [aut]
MaintainerCarl F. Falk <carl.falk@mcgill.ca>
LicenseGPL-3
Version0.4.1
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("multilevelmediation")

Try the multilevelmediation package in your browser

Any scripts or data that you put into this service are public.

multilevelmediation documentation built on April 4, 2025, 4:33 a.m.