RMediation: An R package for mediation analysis confidence intervals
Open accessAbstract
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.
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
Recent research indicates that between-person and within-person components of time-varying predictors must be disaggregated and both effects estimated in the same model.
“recent research72–74 indicates that one must disaggregate the between-person and within-person components of time-varying predictors (i.e., the mediators), and estimate both effects in the same model.”
From Evaluation of an integrated treatment to address smoking cessation and anxiety/depressive symptoms among people living with HIV: Study protocol for a randomized controlled trial (2021) · cites this paper as [72]
The Single-mediator model section describes a single-level mediation model, and the Abstract discusses confidence intervals for mediated effects. Neither passage addresses disaggregating time-varying mediators into between-person and within-person components or estimating both effects in one model. Searches for those terms and for longitudinal or multilevel mediation found no supporting passage in our copy; page numbers were not available. (LLM, conf=0.76)
Experimental — accuracy not yet measured
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Cites
Baron, R. M., & Kenny, D. A. (1986) · Journal of Personality and Social Psychology · doi:10.1037//0022-3514.51.6.1173 · Cited by 91,542 · see citing works
Baron, R. M., & Kenny, D. A. (1986) · Journal of Personality and Social Psychology · doi:10.1037/0022-3514.51.6.1173 · Cited by 91,532 · see citing works
A comparison of methods to test mediation and other intervening variable effects
MacKinnon, D. P., Lockwood, C. M., Hoffman, J. M., West, S. G., & Sheets, V. (2002) · Psychological Methods · doi:10.1037/1082-989x.7.1.83 · Cited by 9,406 · see citing works
Self-citationConfidence Limits for the Indirect Effect: Distribution of the Product and Resampling Methods
MacKinnon, D. P., Lockwood, C. M., & Williams, J. (2004) · Multivariate Behavioral Research · doi:10.1207/s15327906mbr3901_4 · Cited by 7,806 · see citing works
Self-citationMacKinnon, D. P., Fairchild, A. J., & Fritz, M. S. (2007) · Annual Review of Psychology · doi:10.1146/annurev.psych.58.110405.085542 · Cited by 5,688 · see citing works
Self-citationIntroduction to Statistical Mediation Analysis
MacKinnon, D. P. (2012) · doi:10.4324/9780203809556 · Cited by 5,618 · see citing works
Self-citationStatistical methods in psychology journals: Guidelines and explanations.
Wilkinson, L., & Task Force on Statistical Inference (1999) · American Psychologist · doi:10.1037/0003-066x.54.8.594 · Cited by 2,791 · see citing works
Estimating Mediated Effects in Prevention Studies
MacKinnon, D. P., & Dwyer, J. H. (1993) · Evaluation Review · doi:10.1177/0193841x9301700202 · Cited by 1,936 · see citing works
Self-citationA Simulation Study of Mediated Effect Measures
MacKinnon, D. P., Warsi, G. M., & Dwyer, J. H. (1995) · Multivariate Behavioral Research · doi:10.1207/s15327906mbr3001_3 · Cited by 1,715 · see citing works
Self-citationThe Decomposition of Effects in Path Analysis
Alwin, D. F., & Hauser, R. M. (1975) · American Sociological Review · doi:10.2307/2094445 · Cited by 1,447 · see citing works
Distribution of the product confidence limits for the indirect effect: Program PRODCLIN
MacKinnon, D. P., Fritz, M. S., Williams, J. G., & Lockwood, C. M. (2007) · Behavior Research Methods · doi:10.3758/bf03193007 · Cited by 1,328 · see citing works
Self-citationWhat If There Were No Significance Tests?
(2013) · Psychology Press eBooks · doi:10.4324/9781315827353 · Cited by 674 · see citing works
Resampling Methods: A Practical Guide to Data Analysis
Chaubey, Y. P., & Good, P. I. (2000) · Technometrics · doi:10.2307/1271090 · Cited by 404 · see citing works
On the Frequency Function of $xy$
Craig, C. C. (1936) · The Annals of Mathematical Statistics · doi:10.1214/aoms/1177732541 · Cited by 341 · see citing works
Resampling Methods: A Practical Guide to Data Analysis
Hesterberg, T., & Good, P. I. (2000) · Journal of the American Statistical Association · doi:10.2307/2669800 · Cited by 109 · see citing works
Springer, M. (1983) · Technometrics · doi:10.1080/00401706.1983.10487864 · Cited by 63 · see citing works
Covariances between regression coefficient estimates in a single mediator model
Tofighi, D., MacKinnon, D. P., & Yoon, M. (2008) · British Journal of Mathematical and Statistical Psychology · doi:10.1348/000711008x331024 · Cited by 41 · see citing works
Self-citationAn algorithm to compute the cdf of the product of two normal random variables
Meeker, W. Q., & Escobar, L. A. (1994) · Communications in Statistics - Simulation and Computation · doi:10.1080/03610919408813168 · Cited by 23 · see citing works
Flagged first, then by citations
Cited by
Sorted by citations
Hayes, A. F., & Rockwood, N. J. (2017) · Behaviour Research and Therapy · doi:10.1016/j.brat.2016.11.001 · Cited by 2,350 · see citing works
Mode and place of delivery, gastrointestinal microbiota, and their influence on asthma and atopy
van Nimwegen, F. A., Penders, J., Stobberingh, E. E., Postma, D. S., Koppelman, G. H., Kerkhof, M., Reijmerink, N. E., Dompeling, E., van den Brandt, P. A., Ferreira, I., et al. (2011) · Journal of Allergy and Clinical Immunology · doi:10.1016/j.jaci.2011.07.027 · Cited by 493 · see citing works
Neacsiu, A. D., Eberle, J. W., Kramer, R., Wiesmann, T., & Linehan, M. M. (2014) · Behaviour Research and Therapy · doi:10.1016/j.brat.2014.05.005 · Cited by 394 · see citing works
Butts, M. M., Becker, W. J., & Boswell, W. R. (2015) · Academy of Management Journal · doi:10.5465/amj.2014.0170 · Cited by 353 · see citing works
Shaw, A. M., Timpano, K. R., Tran, T. B., & Joormann, J. (2015) · Computers in Human Behavior · doi:10.1016/j.chb.2015.02.003 · Cited by 291 · see citing works
O’Rourke, H. P., & MacKinnon, D. P. (2018) · Journal of Studies on Alcohol and Drugs · doi:10.15288/jsad.2018.79.171 · Cited by 268 · see citing works
Self-citationA novel measure of effect size for mediation analysis
Lachowicz, M. J., Preacher, K. J., & Kelley, K. (2018) · Psychological Methods · doi:10.1037/met0000165 · Cited by 271 · see citing works
Qin, X., Huang, M., Johnson, R. E., Hu, Q., & Ju, D. (2018) · Academy of Management Journal · doi:10.5465/amj.2016.1325 · Cited by 244 · see citing works
Kalmbach, D. A., Pillai, V., Cheng, P., Arnedt, J. T., & Drake, C. L. (2015) · Sleep Medicine · doi:10.1016/j.sleep.2015.09.007 · Cited by 205 · see citing works
Walumbwa, F. O., Hartnell, C. A., & Misati, E. (2017) · Journal of Business Research · doi:10.1016/j.jbusres.2016.11.013 · Cited by 179 · see citing works
Cummings, E. M., Koss, K. J., & Davies, P. T. (2015) · Journal of Abnormal Child Psychology · doi:10.1007/s10802-014-9926-1 · Cited by 176 · see citing works
“Tests of the indirect effects were also examined (Tofighi & MacKinnon, 2011); bootstrapped confidence intervals are reported for the unstandardized parameter estimates of the indirect effect.”
Modeling the cognitive mechanisms linking autism symptoms and anxiety in adults.
Maisel, M. E., Stephenson, K. G., South, M., Rodgers, J., Freeston, M. H., & Gaigg, S. B. (2016) · Journal of Abnormal Psychology · doi:10.1037/abn0000168 · Cited by 132 · see citing works
Transformational leadership and employee voices in the hospitality industry
Liang, T.-L., Chang, H.-F., Ko, M.-H., & Lin, C.-W. (2017) · International Journal of Contemporary Hospitality Management · doi:10.1108/ijchm-07-2015-0364 · Cited by 127 · see citing works
Winters-Stone, K. M., Dobek, J. C., Bennett, J. A., Dieckmann, N. F., Maddalozzo, G. F., Ryan, C. W., & Beer, T. M. (2015) · Archives of Physical Medicine and Rehabilitation · doi:10.1016/j.apmr.2014.08.010 · Cited by 126 · see citing works
Girme, Y. U., Jones, R. E., Fleck, C., Simpson, J. A., & Overall, N. C. (2021) · Emotion · doi:10.1037/emo0000721 · Cited by 103 · see citing works
Gorodzeisky, A., & Semyonov, M. (2020) · Journal of Ethnic and Migration Studies · doi:10.1080/1369183x.2018.1550158 · Cited by 100 · see citing works
Mediators of psychological well-being in adolescent boys
Lubans, D. R., Smith, J. J., Morgan, P. J., Beauchamp, M. R., Miller, A., Lonsdale, C., Parker, P., & Dally, K. (2016) · Journal of Adolescent Health · doi:10.1016/j.jadohealth.2015.10.010 · Cited by 90 · see citing works
Shoham, A., Goldstein, P., Oren, R., Spivak, D., & Bernstein, A. (2017) · Journal of Consulting and Clinical Psychology · doi:10.1037/ccp0000154 · Cited by 87 · see citing works
Stress and coping predicts adjustment and glycemic control in adolescents with type 1 diabetes
Jaser, S. S., Patel, N., Xu, M., Tamborlane, W. V., & Grey, M. (2017) · Annals of Behavioral Medicine · doi:10.1007/s12160-016-9825-5 · Cited by 80 · see citing works
Babic, M. J., Smith, J. J., Morgan, P. J., Lonsdale, C., Plotnikoff, R. C., Eather, N., Skinner, G., Baker, A. L., Pollock, E., & Lubans, D. R. (2016) · Preventive Medicine · doi:10.1016/j.ypmed.2016.07.014 · Cited by 78 · see citing works
Kalmbach, D. A., Cheng, P., Ahmedani, B. K., Peterson, E. L., Reffi, A. N., Sagong, C., Seymour, G. M., Ruprich, M. K., & Drake, C. L. (2022) · Sleep · doi:10.1093/sleep/zsac251 · Cited by 79 · see citing works
Becker, W. J., Belkin, L. Y., Conroy, S. A., & Tuskey, S. (2021) · Journal of Management · doi:10.1177/0149206319890655 · Cited by 73 · see citing works
Brookman-Frazee, L., Roesch, S., Chlebowski, C., Baker-Ericzen, M., & Ganger, W. (2019) · JAMA Psychiatry · doi:10.1001/jamapsychiatry.2019.0011 · Cited by 71 · see citing works
Abusive supervision, thwarted belongingness, and workplace safety: a group engagement perspective
Yang, L.-Q., Zheng, X., Liu, X., Lu, C.-Q., & Schaubroeck, J. M. (2020) · Journal of Applied Psychology · doi:10.1037/apl0000436 · Cited by 69 · see citing works
Brooks Holliday, S., Pedersen, E. R., & Leventhal, A. M. (2016) · Drug and Alcohol Dependence · doi:10.1016/j.drugalcdep.2016.02.030 · Cited by 63 · see citing works
“Because PROCESS does not allow for dichotomous mediators, models reversing the IV and MV were tested using alternative methods (Iacobucci, 2012; Tofighi and MacKinnon, 2011).”
MethodDeplus, S., Billieux, J., Scharff, C., & Philippot, P. (2016) · International Journal of Mental Health and Addiction · doi:10.1007/s11469-015-9627-1 · Cited by 61 · see citing works
Oshri, A., Gray, J. C., Owens, M. M., Liu, S., Duprey, E. B., Sweet, L. H., & MacKillop, J. (2019) · Child Maltreatment · doi:10.1177/1077559519839491 · Cited by 50 · see citing works
Acute effects of low and high dose alcohol on smoking lapse behavior in a laboratory analogue task
Kahler, C. W., Metrik, J., Spillane, N. S., Day, A., Leventhal, A. M., McKee, S. A., Tidey, J. W., McGeary, J. E., Knopik, V. S., & Rohsenow, D. J. (2014) · Psychopharmacology · doi:10.1007/s00213-014-3613-3 · Cited by 52 · see citing works
The role of voice efficacy in the formation of voice behaviour: A cross-level examination
Duan, J., Kwan, H. K., & Ling, B. (2014) · Journal of Management & Organization · doi:10.1017/jmo.2014.40 · Cited by 51 · see citing works
Venner, K. L., Serier, K., Sarafin, R., Greenfield, B. L., Hirchak, K., Smith, J. E., & Witkiewitz, K. (2021) · Addiction · doi:10.1111/add.15191 · Cited by 46 · see citing works
DeCou, C. R., Mahoney, C. T., Kaplan, S. P., & Lynch, S. M. (2019) · Psychological Trauma: Theory, Research, Practice, and Policy · doi:10.1037/tra0000379 · Cited by 42 · see citing works
Peskin, M., Wyka, K., Cukor, J., Olden, M., Altemus, M., Lee, F. S., & Difede, J. (2019) · Journal of Anxiety Disorders · doi:10.1016/j.janxdis.2018.03.001 · Cited by 40 · see citing works
Doom, J. R., Gunnar, M. R., Georgieff, M. K., Kroupina, M. G., Frenn, K., Fuglestad, A. J., & Carlson, S. M. (2014) · Child Development · doi:10.1111/cdev.12231 · Cited by 40 · see citing works
Relations between temperament, sensory processing, and motor coordination in 3-year-old children
Nakagawa, A., Sukigara, M., Miyachi, T., & Nakai, A. (2016) · Frontiers in Psychology · doi:10.3389/fpsyg.2016.00623 · Cited by 36 · see citing works
Long-term effects of a universal family intervention: Mediation through parent-adolescent conflict
Jensen, M. R., Wong, J. J., Gonzales, N. A., Dumka, L. E., Millsap, R., & Coxe, S. (2014) · Journal of Clinical Child & Adolescent Psychology · doi:10.1080/15374416.2014.891228 · Cited by 33 · see citing works
“…statistical significance (defined as p .05), mediated effects of the intervention through mother–adolescent conflict were evaluated by forming the product of coefficients and evaluating it for significance using a confidence interval produced by the RMediation program (Tofighi & MacKinnon, 2011).”
Sun, S., Burke, M., Chen, H., Tan, Y. (., Zhang, J., & Hou, L. (2022) · Human Relations · doi:10.1177/0018726721992849 · Cited by 34 · see citing works
Saavedra, L. M., Morgan-López, A. A., Hien, D. A., López-Castro, T., Ruglass, L. M., Back, S. E., Fitzpatrick, S., Norman, S. B., Killeen, T. K., Ebrahimi, C. T., et al. (2021) · Contemporary Clinical Trials · doi:10.1016/j.cct.2021.106479 · Cited by 31 · see citing works
Taylor, S. S., Davis, M. C., Yeung, E. W., Zautra, A. J., & Tennen, H. A. (2017) · Journal of Behavioral Medicine · doi:10.1007/s10865-016-9811-1 · Cited by 27 · see citing works
Young, C. M., Neighbors, C., DiBello, A. M., Traylor, Z. K., & Tomkins, M. (2016) · Journal of Social and Clinical Psychology · doi:10.1521/jscp.2016.35.5.357 · Cited by 28 · see citing works
Luk, J. W., King, K. M., McCarty, C. A., McCauley, E., & Stoep, A. V. (2017) · Journal of Studies on Alcohol and Drugs · doi:10.15288/jsad.2017.78.521 · Cited by 26 · see citing works
Hsiao, Y.-Y., Tofighi, D., Kruger, E. S., Lee Van Horn, M., MacKinnon, D. P., & Witkiewitz, K. (2019) · Mindfulness · doi:10.1007/s12671-018-1023-z · Cited by 23 · see citing works
Self-citationDaks, J. S., Peltz, J. S., & Rogge, R. D. (2022) · Journal of Contextual Behavioral Science · doi:10.1016/j.jcbs.2022.08.011 · Cited by 22 · see citing works
Schoenfelder, E. N., Tein, J.-Y., Wolchik, S., & Sandler, I. N. (2015) · Journal of Abnormal Child Psychology · doi:10.1007/s10802-014-9905-6 · Cited by 21 · see citing works
Developmental Pathways to BPD-Related Features in Adolescence: Infancy to Age 15
Brumariu, L. E., Owen, M. T., Dyer, N., & Lyons-Ruth, K. (2020) · Journal of Personality Disorders · doi:10.1521/pedi_2020_34_480 · Cited by 21 · see citing works
Bortolon, C., & Raffard, S. (2019) · Cognitive Neuropsychiatry · doi:10.1080/13546805.2019.1670152 · Cited by 19 · see citing works
Psychogiou, L., Ahun, M. N., Boivin, M., Tremblay, R. E., Orri, M., & Côté, S. M. (2022) · Development and Psychopathology · doi:10.1017/s0954579420001753 · Cited by 18 · see citing works
Nitzan-Assayag, Y., Yuval, K., Tanay, G., Aderka, I. M., Vujanovic, A. A., Litz, B., & Bernstein, A. (2017) · Mindfulness · doi:10.1007/s12671-016-0666-x · Cited by 17 · see citing works
Grunberg, V. A., Mace, R. A., Bannon, S. M., Greenberg, J., Bakhshaie, J., & Vranceanu, A.-M. (2021) · Journal of Affective Disorders · doi:10.1016/j.jad.2021.05.069 · Cited by 13 · see citing works
Associations of weight-adjusted-waist index and depression with secondary infertility
Sun, F., Liu, M., Hu, S., Xie, R., Chen, H., Sun, Z., & Bi, H. (2024) · Frontiers in Endocrinology · doi:10.3389/fendo.2024.1330206 · Cited by 13 · see citing works
Huang, S., MacKinnon, D. P., Perrino, T., Gallo, C., Cruden, G., & Brown, C. H. (2016) · Statistical Methods & Applications · doi:10.1007/s10260-016-0354-y · Cited by 12 · see citing works
Self-citationGreenberg, J., Mace, R. A., Bannon, S. M., Kulich, R. J., & Vranceanu, A.-M. (2021) · Journal of Pain Research · doi:10.2147/jpr.s298212 · Cited by 12 · see citing works
Garey, L., Wirtz, M. R., Labbe, A. K., Zvolensky, M. J., Smits, J. A. J., Giordano, T. P., Rosenfield, D., Robbins, G. K., Levy, D. E., McKetchnie, S. M., et al. (2021) · Contemporary Clinical Trials · doi:10.1016/j.cct.2021.106420 · Cited by 3 · see citing works
Sippel, L. M., Wachsman, T. R., Kelley, M. E., Knopp, K. C., Khalifian, C. E., Maglione, J. E., Glynn, S. M., Macdonald, A., Monson, C. M., Flanagan, J. C., et al. (2024) · Contemporary Clinical Trials · doi:10.1016/j.cct.2024.107534 · Cited by 3 · see citing works
- Authors
- Tofighi, D., & MacKinnon, D. P.
- Affiliations
- Georgia Institute of Technology (US)
- Arizona State University (US)
- Corresponding author
- Tofighi, Davood
- Venue
- Behavior Research Methods
- Published
- 2011-04-13
- Volume
- 43
- Issue
- 3
- Pages
- 692-700
- ISSN
- 1554-351X (ISSN-L)
- 1554-3528
- PMC
- PMC3233842
- OpenAlex
- W1990041238
- Semantic Scholar
- c23b7aec27bf59eab2d3fb0691003af144f0dc5e
- Cited by
- 1,419
- References
- 18
- Citations by year
- 2026: 80 · 2025: 114 · 2024: 109 · 2023: 120 · 2022: 102 · 2021: 107 · 2020: 105 · 2019: 84 · 2018: 112 · 2017: 117 · 2016: 117 · 2015: 105 · 2014: 74 · 2013: 56 · 2012: 15
- FWCI
- 41.36
- Type
- journal article
- Language
- en
- Open access
- bronze
- doi.org
- Licence
- www.springer.com/tdm (tdm)
- Locations
- Behavior Research Methods (publishedVersion)
- PubMed (publishedVersion)
- PubMed Central (acceptedVersion)
- Funders
- National Institute on Drug Abuse (DA 09757, F31DA027336, R01DA009757, R37DA009757)
- Topics
- Physical Sciences › Mathematics › Statistics and Probability › Advanced Causal Inference Techniques
- Physical Sciences › Computer Science › Artificial Intelligence › Data Analysis with R
- Physical Sciences › Mathematics › Statistics and Probability › Statistical Methods and Bayesian Inference
- Keywords
- mediation analysis, confidence intervals, indirect effects, Monte Carlo simulation, asymptotic normality, R package
- MeSH terms
- Probability, Research Design, Software, Models, Statistical, Confidence Intervals
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review