How to perform a meta-analysis with R: a practical tutorial
- PMID: 31563865
- PMCID: PMC10231495
- DOI: 10.1136/ebmental-2019-300117
How to perform a meta-analysis with R: a practical tutorial
Abstract
Objective: Meta-analysis is of fundamental importance to obtain an unbiased assessment of the available evidence. In general, the use of meta-analysis has been increasing over the last three decades with mental health as a major research topic. It is then essential to well understand its methodology and interpret its results. In this publication, we describe how to perform a meta-analysis with the freely available statistical software environment R, using a working example taken from the field of mental health.
Methods: R package meta is used to conduct standard meta-analysis. Sensitivity analyses for missing binary outcome data and potential selection bias are conducted with R package metasens. All essential R commands are provided and clearly described to conduct and report analyses.
Results: The working example considers a binary outcome: we show how to conduct a fixed effect and random effects meta-analysis and subgroup analysis, produce a forest and funnel plot and to test and adjust for funnel plot asymmetry. All these steps work similar for other outcome types.
Conclusions: R represents a powerful and flexible tool to conduct meta-analyses. This publication gives a brief glimpse into the topic and provides directions to more advanced meta-analysis methods available in R.
© Author(s) (or their employer(s)) 2019. No commercial re-use. See rights and permissions. Published by BMJ.
Conflict of interest statement
Competing interests: None declared.
Figures





References
-
- Borenstein M, Hedges LV, Higgins JPT, et al. . Introduction to meta-analysis. Chichester: John Wiley & Sons, Ltd, 2009.
-
- Rothstein HR, Sutton AJ, Borenstein MH. Publication bias in meta-analysis: prevention, assessment and adjustments. Chichester, UK: John Wiley & Sons, 2005.
-
- R Core Team . R: a language and environment for statistical computing. Vienna: R Foundation for Statistical Computing; 2019. https://www.R-project.org
-
- StataCorp . Stata statistical software: release 16. College Station, TX: StataCorp LLC, 2019.
MeSH terms
LinkOut - more resources
Full Text Sources
Other Literature Sources