Hostname: page-component-77f85d65b8-6bnxx Total loading time: 0 Render date: 2026-03-27T09:12:19.043Z Has data issue: false hasContentIssue false

CausalMetaR: An R package for performing causally interpretable meta-analyses

Published online by Cambridge University Press:  12 March 2025

Guanbo Wang*
Affiliation:
CAUSALab, Harvard T.H. Chan School of Public Health, Boston, MA, USA Department of Epidemiology, Harvard T.H. Chan School of Public Health, Boston, MA, USA
Sean McGrath
Affiliation:
Department of Biostatistics, Harvard T.H. Chan School of Public Health, Boston, MA, USA
Yi Lian
Affiliation:
Department of Biostatistics, Epidemiology and Informatics, University of Pennsylvania, Philadelphia, PA, USA
*
Corresponding author: Guanbo Wang; Email: gwang@hsph.harvard.edu
Rights & Permissions [Opens in a new window]

Abstract

Researchers would often like to leverage data from a collection of sources (e.g., meta-analyses of randomized trials, multi-center trials, pooled analyses of observational cohorts) to estimate causal effects in a target population of interest. However, because different data sources typically represent different underlying populations, traditional meta-analytic methods may not produce causally interpretable estimates that apply to any reasonable target population. In this article, we present the CausalMetaR R package, which implements robust and efficient methods to estimate causal effects in a given internal or external target population using multi-source data. The package includes estimators of average and subgroup treatment effects for the entire target population. To produce efficient and robust estimates of causal effects, the package implements doubly robust and non-parametric efficient estimators and supports using flexible data-adaptive (e.g., machine learning techniques) methods and cross-fitting techniques to estimate the nuisance models (e.g., the treatment model, the outcome model). We briefly review the methods, describe the key features of the package, and demonstrate how to use the package through an example. The package aims to facilitate causal analyses in the context of meta-analysis.

Information

Type
Software Focus
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press on behalf of The Society for Research Synthesis Methodology
Figure 0

Figure 1 The data structure required when the target population is an internal population in the multi-source data. The shaded dataset represents an example of a target population.

Figure 1

Figure 2 The data structure required when the target population is the external target population. The shaded dataset represents the target population.

Figure 2

Table 1 Identification results for the marginal counterfactual outcomes means in a target population (and subgroup)

Figure 3

Figure 3 The cross-fitting procedure for estimating $\phi _s(\widetilde x)$ in each of the replication.

Figure 4

Table 2 Procedures of cross-fitting for estimating $\phi _s(\widetilde x)$

Figure 5

Table 3 Summary of the arguments in the main functions in CausalMetaR

Figure 6

Figure 4 Forest plot of the STEs in the internal target populations.

Supplementary material: File

Wang et al. supplementary material

Wang et al. supplementary material
Download Wang et al. supplementary material(File)
File 113.6 KB