Viechtbauer 2010 - Conducting Meta-Analyses in R with the metafor Package - Overview
Summary
Viechtbauer (2010) describes the
metaforR package, which fits fixed-, random- and mixed-effects meta-analysis models (including meta-regression with continuous and categorical moderators) as special cases of the heteroscedastic linear mixed model with known sampling variances. The paper walks through effect-size computation, seven estimators, Wald/Knapp-Hartung/likelihood-ratio/permutation inference, diagnostics, publication-bias tools and a 13-study BCG vaccine example whose random-effects estimate is (relative risk 0.49, 95% CI 0.34 to 0.70) with .
Overview
Research question. Existing R packages (meta, rmeta) offered only limited moderator analysis and a single heterogeneity estimator (DerSimonian-Laird). How can a general-purpose package let analysts fit the full family of fixed, random and mixed (meta-regression) models, test and diagnose them, and probe publication bias, all from one interface?
Contribution. A package (v1.4-0 at publication) whose core function rma.uni() fits
, in two steps: estimate (HS, HE, DL, SJ, ML, REML or EB), then weighted least squares with . Around it sit escalc() (effect sizes), forest/funnel/radial/qqnorm, influence/leave1out/cumul, ranktest/regtest/trimfill, anova (LRT), permutest and blup.
Key results (BCG data, log relative risk).
- Random effects (REML): , SE 0.1798; ; ; ; .
- Meta-regression on absolute latitude: per degree (); residual (65% of heterogeneity explained with latitude and year).
- Knapp-Hartung and permutation tests are more conservative and have nearer-nominal Type I error.
Why it matters here. The metafor model is the frequentist counterpart of the Bayesian normal-normal hierarchical model in Roever 2020 - Bayesian Random-Effects Meta-Analysis with bayesmeta - Overview, and its Knapp-Hartung option is the HKSJ method evaluated in IntHout 2014 - HKSJ vs DerSimonian-Laird Random-Effects Meta-Analysis - Overview.
Main Content
Source Map
Headline numbers
| Analysis (BCG, log RR) | Estimate | Source |
|---|---|---|
| RE model, REML | (95% CI -1.0669, -0.3622); RR 0.49 (0.34, 0.70) | Sec. 3.4 |
| (SE) | 0.3132 (0.1664); | Sec. 3.4 |
| , | 92.22%, 12.86 | Sec. 3.4 |
| Q test | , | Sec. 3.4 |
| Mixed: latitude + year | , residual , | Sec. 3.4 |
| LRT for latitude | , , 87.73% of explained | Sec. 3.5 |
| Trim and fill (FE) | 4 missing studies, FE estimate -0.2910 | Sec. 3.5 |
Examples
The full BCG analysis, with independent Python reproduction of , , , , BLUPs and the Knapp-Hartung meta-regression, is in Viechtbauer 2010 - BCG Vaccine Worked Example.
Connections
- Relevance to marketing measurement: a meta-analysis of geo or lift experiments is exactly this model. Let be study ‘s estimated incremental ROAS (or log lift) with standard error ; is the average true effect across the population of tests the brand could have run, and is how much true incrementality varies by channel, campaign or market. Moderators (channel, season, spend level) give a meta-regression. Compare with Geo-Experiment Methodology - Overview and Marketing Generalizations Overview.
- The two-stage random-effects model is a frequentist special case of Hierarchical Models with partial pooling (see BLUP shrinkage in Viechtbauer 2010 - LRT, Permutation Tests, BLUPs and Model Fit and Partial Pooling as Multiple Comparisons Correction).
- Publication-bias and small-study diagnostics connect to Researcher Degrees of Freedom and Ioannidis 2005 - Why Most Published Findings Are False - Overview.