Package: multilevelmediation 0.5.0
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>. Currently only continuous mediators and outcomes are supported. Factors for any predictors must be numerically represented.
Authors:
multilevelmediation_0.5.0.tar.gz
multilevelmediation_0.5.0.zip(r-4.7)multilevelmediation_0.5.0.zip(r-4.6)multilevelmediation_0.5.0.zip(r-4.5)
multilevelmediation_0.5.0.tgz(r-4.6-any)multilevelmediation_0.5.0.tgz(r-4.5-any)
multilevelmediation_0.5.0.tar.gz(r-4.7-any)multilevelmediation_0.5.0.tar.gz(r-4.6-any)
multilevelmediation_0.5.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
multilevelmediation/json (API)
| # Install 'multilevelmediation' in R: |
| install.packages('multilevelmediation', repos = c('https://falkcarl.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/falkcarl/multilevelmediation/issues
Last updated from:02700a91c8. Checks:7 NOTE, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | NOTE | 255 | ||
| source / vignettes | OK | 336 | ||
| linux-release-x86_64 | NOTE | 269 | ||
| macos-release-arm64 | NOTE | 174 | ||
| macos-oldrel-arm64 | NOTE | 127 | ||
| windows-devel | NOTE | 189 | ||
| windows-release | NOTE | 287 | ||
| windows-oldrel | NOTE | 186 | ||
| wasm-release | OK | 164 |
Exports:boot.modmed.mlmboot.modmed.mlm.custombootresid.modmed.mlmextract.boot.modmed.mlmextract.modmed.mlmextract.modmed.mlm.brmsmodmed.mlmmodmed.mlm.brmsstack_bpg
Dependencies:abindbackportsbayesplotBHbootbridgesamplingbrmsBrobdingnagbroomcallrcheckmateclicodacodetoolscolorspacecowplotcpp11DerivdescdigestdistributionaldoBydplyrfarverforecastfracdifffurrrfuturefuture.applygenericsggplot2ggridgesglmmTMBglobalsgluegridExtragtableinlineisobandlabelinglatticelifecyclelistenvlme4lmtestloomagrittrMASSMatrixmatrixcalcMatrixModelsmatrixStatsmcmcMCMCpackmgcvminqamodelrmvtnormnleqslvnlmenloptrnnetnumDerivotelparallellypbkrtestpillarpkgbuildpkgconfigplyrposteriorprocessxpspurrrquantregQuickJSRR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRcppParallelRdpackreformulasreshape2rlangrstanrstantoolsS7sandwichscalesSparseMStanHeadersstringistringrsurvivaltensorAtibbletidyrtidyselecttimeDateTMBurcautf8vctrsviridisLitewithrzoo
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Boot function for (moderated) mediation with 2-level multilevel models | boot.modmed.mlm |
| Bootstrapping multilevel mediation model (without boot package) | boot.modmed.mlm.custom |
| Custom function for residual bootstrap for (moderated) multilevel mediation | bootresid.modmed.mlm |
| Simulated dataset from Bauer, Preacher, and Gil (2006) | BPG06dat |
| Post-processing of bootstrap results from boot.modmed.mlm | extract.boot.modmed.mlm |
| Post-processing of a model fit with modmed.mlm | extract.modmed.mlm |
| Post-processing of results from modmed.mlm.brms | extract.modmed.mlm.brms |
| Model definition and estimation function for two-level (moderated) mediation | modmed.mlm |
| Custom model fitting function for a 1-1-1 (moderated) mediation for the brms code | modmed.mlm.brms |
| A simulated dataset with moderator | simdat |
| Stacks data in the style of Bauer-Preacher-Gil for multilevel mediation | stack_bpg |
