RMediation: An R package for mediation analysis confidence intervals

Davood Tofighi, David Mackinnon

Research output: Contribution to journalArticle

615 Citations (Scopus)

Abstract

This article describes the RMediation package,which offers various methods for building confidence intervals (CIs) for mediated effects. The mediated effect is the product of two regression coefficients. The distribution-of-the-product method has the best statistical performance of existing methods for building CIs for the mediated effect. RMediation produces CIs using methods based on the distribution of product, Monte Carlo simulations, and an asymptotic normal distribution. Furthermore, RMediation generates percentiles, quantiles, and the plot of the distribution and CI for the mediated effect. An existing program, called PRODCLIN, published in Behavior Research Methods, has been widely cited and used by researchers to build accurate CIs. PRODCLIN has several limitations: The program is somewhat cumbersome to access and yields no result for several cases. RMediation described herein is based on the widely available R software, includes several capabilities not available in PRODCLIN, and provides accurate results that PRODCLIN could not.

Original languageEnglish (US)
Pages (from-to)692-700
Number of pages9
JournalBehavior Research Methods
Volume43
Issue number3
DOIs
StatePublished - Sep 2011

Fingerprint

Confidence Intervals
Normal Distribution
Software
Research Personnel
Confidence Interval
Mediation
Research

Keywords

  • Confidence intervals
  • Indirect effect
  • Mediation
  • R

ASJC Scopus subject areas

  • Psychology(all)
  • Psychology (miscellaneous)
  • Experimental and Cognitive Psychology
  • Arts and Humanities (miscellaneous)
  • Developmental and Educational Psychology

Cite this

RMediation : An R package for mediation analysis confidence intervals. / Tofighi, Davood; Mackinnon, David.

In: Behavior Research Methods, Vol. 43, No. 3, 09.2011, p. 692-700.

Research output: Contribution to journalArticle

@article{a1e2ba9f122241418c9d9074f2d369bd,
title = "RMediation: An R package for mediation analysis confidence intervals",
abstract = "This article describes the RMediation package,which offers various methods for building confidence intervals (CIs) for mediated effects. The mediated effect is the product of two regression coefficients. The distribution-of-the-product method has the best statistical performance of existing methods for building CIs for the mediated effect. RMediation produces CIs using methods based on the distribution of product, Monte Carlo simulations, and an asymptotic normal distribution. Furthermore, RMediation generates percentiles, quantiles, and the plot of the distribution and CI for the mediated effect. An existing program, called PRODCLIN, published in Behavior Research Methods, has been widely cited and used by researchers to build accurate CIs. PRODCLIN has several limitations: The program is somewhat cumbersome to access and yields no result for several cases. RMediation described herein is based on the widely available R software, includes several capabilities not available in PRODCLIN, and provides accurate results that PRODCLIN could not.",
keywords = "Confidence intervals, Indirect effect, Mediation, R",
author = "Davood Tofighi and David Mackinnon",
year = "2011",
month = "9",
doi = "10.3758/s13428-011-0076-x",
language = "English (US)",
volume = "43",
pages = "692--700",
journal = "Behavior Research Methods, Instruments, and Computers",
issn = "1554-351X",
publisher = "Springer New York",
number = "3",

}

TY - JOUR

T1 - RMediation

T2 - An R package for mediation analysis confidence intervals

AU - Tofighi, Davood

AU - Mackinnon, David

PY - 2011/9

Y1 - 2011/9

N2 - This article describes the RMediation package,which offers various methods for building confidence intervals (CIs) for mediated effects. The mediated effect is the product of two regression coefficients. The distribution-of-the-product method has the best statistical performance of existing methods for building CIs for the mediated effect. RMediation produces CIs using methods based on the distribution of product, Monte Carlo simulations, and an asymptotic normal distribution. Furthermore, RMediation generates percentiles, quantiles, and the plot of the distribution and CI for the mediated effect. An existing program, called PRODCLIN, published in Behavior Research Methods, has been widely cited and used by researchers to build accurate CIs. PRODCLIN has several limitations: The program is somewhat cumbersome to access and yields no result for several cases. RMediation described herein is based on the widely available R software, includes several capabilities not available in PRODCLIN, and provides accurate results that PRODCLIN could not.

AB - This article describes the RMediation package,which offers various methods for building confidence intervals (CIs) for mediated effects. The mediated effect is the product of two regression coefficients. The distribution-of-the-product method has the best statistical performance of existing methods for building CIs for the mediated effect. RMediation produces CIs using methods based on the distribution of product, Monte Carlo simulations, and an asymptotic normal distribution. Furthermore, RMediation generates percentiles, quantiles, and the plot of the distribution and CI for the mediated effect. An existing program, called PRODCLIN, published in Behavior Research Methods, has been widely cited and used by researchers to build accurate CIs. PRODCLIN has several limitations: The program is somewhat cumbersome to access and yields no result for several cases. RMediation described herein is based on the widely available R software, includes several capabilities not available in PRODCLIN, and provides accurate results that PRODCLIN could not.

KW - Confidence intervals

KW - Indirect effect

KW - Mediation

KW - R

UR - http://www.scopus.com/inward/record.url?scp=80052858920&partnerID=8YFLogxK

UR - http://www.scopus.com/inward/citedby.url?scp=80052858920&partnerID=8YFLogxK

U2 - 10.3758/s13428-011-0076-x

DO - 10.3758/s13428-011-0076-x

M3 - Article

C2 - 21487904

AN - SCOPUS:80052858920

VL - 43

SP - 692

EP - 700

JO - Behavior Research Methods, Instruments, and Computers

JF - Behavior Research Methods, Instruments, and Computers

SN - 1554-351X

IS - 3

ER -