The meta 9.0 Update Changes Your Pooled Estimates

Version 9.0-0 of the R package meta switches Mantel–Haenszel pooling to the exact method by default, so the same script can now give a different answer.

By 9 min

The main change in version 9.0-0 of the R package meta is that metabin() now uses the exact Mantel–Haenszel method by default (MH.exact = TRUE), so no continuity correction enters the common-effect pooled estimate. If any of your binary-outcome studies has a zero cell, rerunning an old script after updating can give a different pooled odds ratio or risk ratio. The release also changes the default forest-plot layout and several smaller defaults, all of which can be reversed with settings.meta("meta8").

The package NEWS file dates version 9.0-0 to 13 November 2026, and it reached CRAN shortly afterwards. Below we cover what changed, why the Mantel–Haenszel switch matters for sparse data, and how to keep a review reproducible across the update. Everything listed here is taken from the package's own NEWS file; we have left out anything we could not confirm there.

What changed in meta 9.0-0

The NEWS file lists dozens of changes. These are the ones most likely to affect a systematic review.

  • Mantel–Haenszel default. For common-effect analyses with method = "MH", MH.exact now defaults to TRUE. Study-level estimates and inverse-variance random-effects analyses still follow the continuity-correction settings. If only one eligible study remains, MH.exact is set back to FALSE.
  • Forest-plot layout. In the default layout (layout = "meta"), all default study-level columns now print on the left, and details of the methods, the test for an overall effect and a header line print by default. The old look is available with forest(..., layout = "meta8"). Plots also get a default main title built from the meta-analysis title and labels; main = "" removes it.
  • Cluster-robust variance. method.random.ci now accepts "CR0", "CR1" and "CR2" for cluster-robust variance estimators in univariate random-effects and three-level models. "CR2" needs the optional clubSandwich package.
  • Renamed and new functions. asin2ir() is renamed ft2ir(), and a new ir2ft() computes the Freeman–Tukey transformation of incidence rates.
  • metaadd() no longer works for Freeman–Tukey transformed proportions (sm = "PFT") or rates (sm = "IRFT").
  • Removed arguments. The deprecated *.fixed and *.fixed.* arguments of forest.meta() are gone. Use the common-effect elements of the fs, ff, col and label lists instead.
  • log.prefix. A new setting controls the prefix for log-transformed effect measures, and the default is now "log" rather than "ln" in printouts and forest plots.

Two further points matter for anyone with saved objects or old servers. Objects created with metabind() or metamerge() before 9.0-0 must be recreated, and the package now requires R 4.1.0 or later. Cumulative and leave-one-out analyses also now default to random-effects results whenever prediction intervals are requested.

Most of these changes alter how output looks or break old code loudly with an error. The Mantel–Haenszel change is different: the code runs without complaint and the number changes.

Why MH.exact changes estimates for sparse data

The Mantel–Haenszel estimator pools 2×2 tables directly. For the odds ratio, each study contributes a numerator term (events in the treatment arm × non-events in control, divided by the study total) and a denominator term (non-events in treatment × events in control, divided by the total). The pooled odds ratio is the sum of numerators divided by the sum of denominators. A study with a single zero cell still contributes: one of its terms is zero, the other is not. That is why the method has no need for a continuity correction unless every study has zero events in the same arm (Deeks et al., 2024).

Before 9.0-0, metabin() added 0.5 to every cell of a zero-cell study before computing those terms, which matches RevMan 5 and Stata's metan. The correction pulls each zero-cell study towards the null, and it does so by different amounts depending on arm sizes. Sweeting et al. (2004) showed that a constant 0.5 correction can bias pooled estimates in sparse data, especially when the arms are unbalanced. Their paper is the standard reference for why the "add 0.5" habit deserves scrutiny, and our note on what to add to a zero-event trial covers the wider choice of methods.

Practically, the size of the shift depends on how many studies have zero cells, how much weight they carry and how unequal their arms are. In a review with no zero cells, nothing changes. In a review of adverse events or mortality, where zero cells are common, the pooled estimate can move appreciably, and usually away from the null, because the old correction diluted the signal.

Three details are easy to miss. First, the change affects only the common-effect Mantel–Haenszel estimate; the random-effects estimate is still inverse-variance on continuity-corrected study estimates, so your common-effect and random-effects results may now drift further apart. Second, double-zero studies are still excluded by default (allstudies = FALSE), as before. Third, if your results no longer match RevMan, this is a likely reason: settings.meta("RevMan5") sets MH.exact = FALSE along with the other RevMan 5 defaults. If you are reconciling the two, our note on why RevMan now asks for a reason when you enter results manually is relevant.

A reproducible example

The data below are invented: five small trials of a rare adverse event, three with a zero cell and two with unequal arms. The code assumes meta 9.0-0 or later.

library(meta)
packageVersion("meta")   # should be 9.0.0 or later

dat <- data.frame(
  study   = paste("Trial", 1:5),
  event.e = c(0,   1,  0,  2,  0),
  n.e     = c(40, 120, 25, 80, 50),
  event.c = c(3,   4,  2,  5,  1),
  n.c     = c(40,  60, 75, 80, 50)
)

# New default: exact Mantel-Haenszel (no continuity correction in pooling)
m_new <- metabin(event.e, n.e, event.c, n.c, studlab = study,
                 data = dat, sm = "OR", method = "MH",
                 common = TRUE, random = FALSE)

# Previous behaviour: 0.5 added to zero-cell studies before pooling
m_old <- metabin(event.e, n.e, event.c, n.c, studlab = study,
                 data = dat, sm = "OR", method = "MH",
                 common = TRUE, random = FALSE, MH.exact = FALSE)

round(exp(c(OR = m_new$TE.common, lower = m_new$lower.common,
            upper = m_new$upper.common)), 3)
round(exp(c(OR = m_old$TE.common, lower = m_old$lower.common,
            upper = m_old$upper.common)), 3)

Working the Mantel–Haenszel formulas by hand on these data gives a pooled odds ratio of about 0.17 (95% CI 0.05 to 0.59) with the exact method and about 0.25 (0.09 to 0.73) with the 0.5 correction. The same data with sm = "RR" give about 0.17 against 0.27. The direction of the conclusion holds here, but the magnitude does not, and a difference of that size would change an absolute-effect calculation in a summary of findings table. Run the code yourself; small differences in the last decimal place are possible.

The example also shows the fix. Setting MH.exact = FALSE in the call reproduces the old Mantel–Haenszel behaviour for that analysis. To restore all of the version 8 defaults for a session, including the old forest-plot layout, use settings.meta("meta8").

Keeping your analysis reproducible across the update

A default change is only a problem if nobody knows which default was used. Four habits prevent that.

Pin the version. Use renv for every review project. renv::init() records the package versions in a lockfile, and renv::restore() rebuilds that library on another machine or months later. If your protocol analysis ran on meta 8.x, keep it there until you decide to change, and record that decision.

Check your settings, not just your code. settings.meta() with no arguments prints the current global settings, including MH.exact, incr and method.incr. Settings persist for the R session, and a call to settings.meta("RevMan5") or settings.meta("meta8") earlier in a script silently changes later results. settings.meta("reset") returns to the package defaults. Print the settings once in your analysis log.

Decide which method you want, then state it explicitly. We would rather see MH.exact = TRUE or MH.exact = FALSE written into the call than rely on either default. The exact method is statistically defensible and is now the package default; the corrected method matches RevMan 5. Either can be justified, but the choice belongs in the protocol, not in whichever version happened to be installed. If you update mid-review, a rerun with the other setting makes a reasonable sensitivity analysis, and our note on sensitivity analyses that actually test something explains how to frame it.

Update dependent code. Search your scripts for asin2ir(, any *.fixed forest-plot arguments, metaadd() on PFT or IRFT objects, and saved metabind() or metamerge() objects. These will fail or need rebuilding. If you post-process printed output, note that labels now read "log" rather than "ln" unless you set log.prefix.

What to report in the methods

The meta workflow described by Balduzzi et al. (2019) is still the right starting point, but a methods section now needs a little more detail. Check that yours includes:

  • the R version and the exact meta version (for example, "meta 9.0-0"), with the package cited;
  • the pooling method for binary outcomes (Mantel–Haenszel, inverse variance, Peto or GLMM) and, for Mantel–Haenszel, whether the exact method or a continuity correction was used;
  • the continuity correction for study-level estimates (value, and whether added only to zero-cell studies) and how double-zero studies were handled;
  • the random-effects estimator and the confidence-interval method, including any cluster-robust option such as method.random.ci = "CR2";
  • any global settings applied with settings.meta();
  • a sensitivity analysis with the alternative MH.exact setting if zero cells are common or the version changed during the review;
  • the renv lockfile or analysis code in your supplementary material or repository.

References

Balduzzi, S., Rücker, G., & Schwarzer, G. (2019). How to perform a meta-analysis with R: A practical tutorial. Evidence-Based Mental Health, 22(4), 153–160. https://doi.org/10.1136/ebmental-2019-300117

Deeks, J. J., Higgins, J. P. T., Altman, D. G., McKenzie, J. E., & Veroniki, A. A. (Eds.). (2024). Chapter 10: Analysing data and undertaking meta-analyses. In J. P. T. Higgins, J. Thomas, J. Chandler, M. Cumpston, T. Li, M. J. Page, & V. A. Welch (Eds.), Cochrane handbook for systematic reviews of interventions (version 6.5). Cochrane. https://www.cochrane.org/authors/handbooks-and-manuals/handbook/current/chapter-10

Sweeting, M. J., Sutton, A. J., & Lambert, P. C. (2004). What to add to nothing? Use and avoidance of continuity corrections in meta-analysis of sparse data. Statistics in Medicine, 23(9), 1351–1375. https://doi.org/10.1002/sim.1761

, Lead Consultant

About the author →