Package: robmed 1.3.0
robmed: (Robust) Mediation Analysis
Perform mediation analysis via the fast-and-robust bootstrap test ROBMED (Alfons, Ates & Groenen, 2022a; <doi:10.1177/1094428121999096>), as well as various other methods. Details on the implementation and code examples can be found in Alfons, Ates, and Groenen (2022b) <doi:10.18637/jss.v103.i13>. Further discussion on robust mediation analysis can be found in Alfons & Schley (2025) <doi:10.1002/wics.70051>.
Authors:
robmed_1.3.0.tar.gz
robmed_1.3.0.zip(r-4.7)robmed_1.3.0.zip(r-4.6)robmed_1.3.0.zip(r-4.5)
robmed_1.3.0.tgz(r-4.6-any)robmed_1.3.0.tgz(r-4.5-any)
robmed_1.3.0.tar.gz(r-4.7-any)robmed_1.3.0.tar.gz(r-4.6-any)
robmed_1.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
robmed/json (API)
NEWS
| # Install 'robmed' in R: |
| install.packages('robmed', repos = c('https://aalfons.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/aalfons/robmed/issues
- BSG2014 - Business simulation game data
Last updated from:938f47613f. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 430 | ||
| source / vignettes | OK | 214 | ||
| linux-release-x86_64 | OK | 195 | ||
| macos-release-arm64 | OK | 174 | ||
| macos-oldrel-arm64 | OK | 200 | ||
| windows-devel | OK | 188 | ||
| windows-release | OK | 193 | ||
| windows-oldrel | OK | 219 | ||
| wasm-release | OK | 98 |
Exports:boot_samplesci_plotcov_controlcov_Hubercov_MLcovariatesdensity_plotellipse_plotfit_mediationmmedian_reg_controlMM_reg_controlp_valueparallel_mreg_controlretestrmediationrobmedserial_msetup_ci_plotsetup_density_plotsetup_ellipse_plotsetup_weight_plotsim_mediationtest_mediationweight_plot
Dependencies:bootclicpp11DEoptimRfarverggplot2gluegtableisobandlabelinglatticelifecycleMASSMatrixMatrixModelsmnormtnumDerivquantregR6RColorBrewerrlangrobustbaseS7scalessnSparseMsurvivalvctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| (Robust) Mediation Analysis | robmed-package |
| Draw bootstrap samples | boot_samples |
| Business simulation game data | BSG2014 |
| Dot plot with confidence intervals | ci_plot ci_plot.boot_test_mediation ci_plot.default ci_plot.list ci_plot.setup_ci_plot ci_plot.sobel_test_mediation |
| Coefficients in (robust) mediation analysis | coef.boot_test_mediation coef.fit_mediation coef.test_mediation |
| Confidence intervals from (robust) mediation analysis | confint.boot_test_mediation confint.sobel_test_mediation confint.test_mediation |
| Tuning parameters for Huber M-estimation of location and scatter | cov_control |
| Huber M-estimator of location and scatter | cov_Huber print.cov_Huber |
| Maximum likelihood estimator of mean vector and covariance matrix | cov_ML print.cov_ML |
| Density plot of the indirect effect(s) | density_plot density_plot.default density_plot.list density_plot.setup_density_plot density_plot.sobel_test_mediation |
| Diagnostic plot with a tolerance ellipse | ellipse_plot ellipse_plot.default ellipse_plot.setup_ellipse_plot |
| (Robustly) fit a mediation model | fit_mediation fit_mediation.default fit_mediation.formula print.fit_mediation summary.cov_fit_mediation summary.reg_fit_mediation |
| Create an object of hypothesized mediators or control variables | covariates m parallel_m serial_m |
| p-Values from (robust) mediation analysis | p_value p_value.boot_test_mediation p_value.sobel_test_mediation |
| Plot (robust) mediation analysis results | autoplot.fit_mediation autoplot.test_mediation plot-methods plot.fit_mediation plot.test_mediation |
| Tuning parameters for robust regression | median_reg_control MM_reg_control reg_control |
| Retest for mediation | retest retest.boot_test_mediation retest.sobel_test_mediation |
| Set up information for a dot plot with confidence intervals | setup_ci_plot setup_ci_plot.boot_test_mediation setup_ci_plot.list setup_ci_plot.sobel_test_mediation |
| Set up information for a density plot of the indirect effect(s) | setup_density_plot setup_density_plot.boot_test_mediation setup_density_plot.list setup_density_plot.sobel_test_mediation |
| Set up a diagnostic plot with a tolerance ellipse | setup_ellipse_plot setup_ellipse_plot.cov_fit_mediation setup_ellipse_plot.list setup_ellipse_plot.reg_fit_mediation setup_ellipse_plot.test_mediation |
| Set up a diagnostic plot of robust regression weights | setup_weight_plot setup_weight_plot.reg_fit_mediation setup_weight_plot.test_mediation |
| Generate data from a fitted mediation model | rmediation sim_mediation sim_mediation.fit_mediation sim_mediation.test_mediation |
| Summary of results from (robust) mediation analysis | summary.boot_test_mediation summary.sobel_test_mediation summary.test_mediation |
| (Robust) mediation analysis | print.boot_test_mediation print.sobel_test_mediation robmed test_mediation test_mediation.default test_mediation.fit_mediation test_mediation.formula |
| Diagnostic plot of robust regression weights | weight_plot weight_plot.default weight_plot.setup_weight_plot |
| Robustness weights of Huber M-estimation of location and scatter | weights.cov_Huber |
