RMediation: an R package for mediation analysis confidence intervals
- PMID: 21487904
- PMCID: PMC3233842
- DOI: 10.3758/s13428-011-0076-x
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.
Figures
Similar articles
-
Distribution of the product confidence limits for the indirect effect: program PRODCLIN.Behav Res Methods. 2007 Aug;39(3):384-9. doi: 10.3758/bf03193007. Behav Res Methods. 2007. PMID: 17958149 Free PMC article.
-
Simultaneous confidence intervals for contrasts of quantiles.Biom J. 2022 Jan;64(1):7-19. doi: 10.1002/bimj.202000077. Epub 2021 Sep 9. Biom J. 2022. PMID: 34499768
-
Ensemble confidence intervals for binomial proportions.Stat Med. 2019 Aug 15;38(18):3460-3475. doi: 10.1002/sim.8189. Epub 2019 May 17. Stat Med. 2019. PMID: 31099897
-
Applications of Monte Carlo Simulation in Modelling of Biochemical Processes.In: Mode CJ, editor. Applications of Monte Carlo Methods in Biology, Medicine and Other Fields of Science [Internet]. Rijeka (HR): InTech; 2011 Feb 28. Chapter 4. In: Mode CJ, editor. Applications of Monte Carlo Methods in Biology, Medicine and Other Fields of Science [Internet]. Rijeka (HR): InTech; 2011 Feb 28. Chapter 4. PMID: 28045483 Free Books & Documents. Review.
-
Confidence interval for quantiles and percentiles.Biochem Med (Zagreb). 2019 Feb 15;29(1):010101. doi: 10.11613/BM.2019.010101. Epub 2018 Dec 15. Biochem Med (Zagreb). 2019. PMID: 30591808 Free PMC article. Review.
Cited by
-
Web-based cognitive behavior therapy for chronic pain patients with aberrant drug-related behavior: How did it work and for whom?J Behav Med. 2021 Oct;44(5):704-714. doi: 10.1007/s10865-021-00219-9. Epub 2021 Apr 12. J Behav Med. 2021. PMID: 33846875 Free PMC article.
-
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.Contemp Clin Trials. 2021 Jul;106:106420. doi: 10.1016/j.cct.2021.106420. Epub 2021 Apr 30. Contemp Clin Trials. 2021. PMID: 33933667 Free PMC article.
-
Effects of an adolescent depression prevention program on maternal criticisms and positive remarks.J Fam Psychol. 2020 Dec;34(8):927-937. doi: 10.1037/fam0000779. Epub 2020 Jul 13. J Fam Psychol. 2020. PMID: 32658515 Free PMC article. Clinical Trial.
-
Interleukin-2 mediated associations between gut microbiota and acute myeloid leukemia: A population-based mediation Mendelian randomization study.Heliyon. 2024 Jun 17;10(12):e33194. doi: 10.1016/j.heliyon.2024.e33194. eCollection 2024 Jun 30. Heliyon. 2024. PMID: 39022041 Free PMC article.
-
Continuance compliance of privacy policy of electronic medical records: the roles of both motivation and habit.BMC Med Inform Decis Mak. 2018 Dec 18;18(1):135. doi: 10.1186/s12911-018-0722-7. BMC Med Inform Decis Mak. 2018. PMID: 30563500 Free PMC article.
References
-
- Alwin DF, Hauser RM. Decomposition of effects in path analysis. American Sociological Review. 1975;40:37–47.
-
- Baron RM, Kenny DA. The moderator-mediator variable distinction in social psychological research: Conceptual, strategic, and statistical considerations. Journal of Personality and Social Psychology. 1986;51:1173–1182. - PubMed
-
- Craig CC. On the frequency function of xy. Annals of Mathematical Statistics. 1936;7:1–15.
-
- R Development Core Team. R: A language and environment for statistical computing [Computer software] Vienna, Austria: 2010. Available from http://www.R-project.org.
-
- Good PI. Resampling methods: A practical guide to data analysis. 3rd ed. Boston: Birkhäuser; 2006.
Publication types
MeSH terms
Grants and funding
LinkOut - more resources
Full Text Sources
Other Literature Sources
Medical