Learn R Programming

⚠️There's a newer version (1.2.1) of this package.Take me there.

robmed: (Robust) Mediation Analysis

Perform mediation analysis via the robust bootstrap test ROBMED (Alfons, Ates & Groenen, 2021). In addition to ROBMED, several other (bootstrap) tests for mediation analysis are implemented.

About ROBMED

The robust bootstrap test ROBMED for mediation analysis is less sensitive to deviations from model assumptions (such as outliers or heavily tailed distributions) than the standard bootstrap test of Preacher & Hayes (2004, 2008). ROBMED utilizes the robust MM-regression estimator (Yohai, 1987) instead of the OLS estimator for regression, and runs bootstrap tests with the fast and robust bootstrap methodology (Salibián-Barrera & Zamar, 2002; Salibián-Barrera & Van Aelst, 2008).

More information can be found in our article:

Alfons, A., Ates, N.Y., & Groenen, P.J.F. (2021). A Robust Bootstrap Test for Mediation Analysis. Organizational Research Methods. DOI 10.1177/1094428121999096.

Installation

The R package robmed is on CRAN (The Comprehensive R Archive Network), hence it can be easily installed from the R command line via

install.packages("robmed")

Bug reports and feature requests

If you experience any problems with robmed or if you have any suggestions for additional features, please submit an issue via the Issues tab of this repository. Please have a look at existing issues first to see if your problem for feature request has already been discussed.

Copy Link

Version

Install

install.packages('robmed')

Monthly Downloads

399

Version

0.9.0

License

GPL (>= 2)

Maintainer

Andreas Alfons

Last Published

June 4th, 2021

Functions in robmed (0.9.0)

BSG2014

Business simulation game data
density_plot

Density plot of the indirect effect(s)
coef.test_mediation

Coefficients in (robust) mediation analysis
cov_control

Tuning parameters for Huber M-estimation of location and scatter
cov_ML

Maximum likelihood estimator of mean vector and covariance matrix
ci_plot

Dot plot with confidence intervals
setup_ci_plot

Set up information for a dot plot with confidence intervals
ellipse_plot

Diagnostic plot with a tolerance ellipse
confint.test_mediation

Confidence intervals from (robust) mediation analysis
boot_samples

Draw bootstrap samples
robmed-package

robmed
summary.test_mediation

Summary of results from (robust) mediation analysis
plot-methods

Plot (robust) mediation analysis results
p_value

p-Values from (robust) mediation analysis
run_shiny_app

Shiny app: simulation for mediation analysis with outliers
setup_density_plot

Set up information for a density plot of the indirect effect(s)
weight_plot

Diagnostic plot of robust regression weights
weights.cov_Huber

Robustness weights of Huber M-estimation of location and scatter
setup_ellipse_plot

Set up a diagnostic plot with a tolerance ellipse
setup_weight_plot

Set up a diagnostic plot of robust regression weights
cov_Huber

Huber M-estimator of location and scatter
reg_control

Tuning parameters for MM-regression
retest

Retest for mediation
test_mediation

(Robust) mediation analysis
m

Create an object of hypothesized mediators or control variables
fit_mediation

(Robustly) fit a mediation model