Package: multilevelmediation 0.3.1

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.

Authors:Carl F. Falk [cre, aut], Todd Vogel [aut], Sarah Hammami [aut], Milica Miočević [aut]

multilevelmediation_0.3.1.tar.gz
multilevelmediation_0.3.1.zip(r-4.5)multilevelmediation_0.3.1.zip(r-4.4)multilevelmediation_0.3.1.zip(r-4.3)
multilevelmediation_0.3.1.tgz(r-4.4-any)multilevelmediation_0.3.1.tgz(r-4.3-any)
multilevelmediation_0.3.1.tar.gz(r-4.5-noble)multilevelmediation_0.3.1.tar.gz(r-4.4-noble)
multilevelmediation_0.3.1.tgz(r-4.4-emscripten)multilevelmediation_0.3.1.tgz(r-4.3-emscripten)
multilevelmediation.pdf |multilevelmediation.html
multilevelmediation/json (API)

# Install 'multilevelmediation' in R:
install.packages('multilevelmediation', repos = c('https://falkcarl.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/falkcarl/multilevelmediation/issues

Datasets:
  • BPG06dat - Simulated dataset from Bauer, Preacher, and Gil
  • simdat - A simulated dataset with moderator

On CRAN:

9 exports 5 stars 1.74 score 91 dependencies 1 scripts 892 downloads

Last updated 4 days agofrom:455853a924. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 14 2024
R-4.5-winOKSep 14 2024
R-4.5-linuxOKSep 14 2024
R-4.4-winOKSep 14 2024
R-4.4-macOKSep 14 2024
R-4.3-winOKSep 14 2024
R-4.3-macOKSep 14 2024

Exports:boot.modmed.mlmboot.modmed.mlm.custombootresid.modmed.mlmextract.boot.modmed.mlmextract.modmed.mlmextract.modmed.mlm.brmsmodmed.mlmmodmed.mlm.brmsstack_bpg

Dependencies:abindbackportsbayesplotBHbootbridgesamplingbrmsBrobdingnagcallrcheckmateclicodacodetoolscolorspacecpp11descdigestdistributionaldplyrfansifarverfurrrfuturefuture.applygenericsggplot2ggridgesglmmTMBglobalsgluegridExtragtableinlineisobandlabelinglatticelifecyclelistenvlme4loomagrittrMASSMatrixmatrixcalcMatrixModelsmatrixStatsmcmcMCMCpackmgcvminqamunsellmvtnormnleqslvnlmenloptrnumDerivparallellypillarpkgbuildpkgconfigplyrposteriorprocessxpspurrrquantregQuickJSRR6RColorBrewerRcppRcppEigenRcppParallelreshape2rlangrstanrstantoolsscalesSparseMStanHeadersstringistringrsurvivaltensorAtibbletidyrtidyselectTMButf8vctrsviridisLitewithr