Skip to content

Prediction intervals and meta-regression: a worked example

A significant pooled effect can still mislead. On 13 real BCG vaccine trials: what the prediction interval adds to the confidence interval, how much the model matters, and how meta-regression explains heterogeneity, with methods and results text you can adapt.

Tesfahun Mulatu · 8 November 2026 · 9 min read

A forest plot ends in a diamond, and it is tempting to read the diamond as the answer. Often it is only half of it. The diamond tells you about the average effect across the studies. It does not tell you what to expect in a particular setting, and when the studies disagree, that is usually what matters most.

This guide works through one classic data set: what the pooled effect says, what the prediction interval adds, how much the choice of model matters, and how meta-regression can explain why studies differ.

The data: 13 BCG vaccine trials

These are 13 published trials of BCG vaccination against tuberculosis, from Colditz et al. (1994), with 357,347 participants. They are a standard teaching example for meta-analysis. The trials are decades old, so this is an exercise in method and not guidance on vaccination. Their results range from a risk ratio of 0.20 to 1.56.

TrialBCG: TB cases / vaccinatedControl: TB cases / unvaccinatedLatitude (degrees)
Aronson 19484 / 12311 / 13944
Ferguson & Simes 19496 / 30629 / 30355
Rosenthal et al 19603 / 23111 / 22042
Hart & Sutherland 197762 / 13,598248 / 12,86752
Frimodt-Moller et al 197333 / 5,06947 / 5,80813
Stein & Aronson 1953180 / 1,541372 / 1,45144
Vandiviere et al 19738 / 2,54510 / 62919
TPT Madras 1980505 / 88,391499 / 88,39113
Coetzee & Berjak 196829 / 7,49945 / 7,27727
Rosenthal et al 196117 / 1,71665 / 1,66542
Comstock et al 1974186 / 50,634141 / 27,33818
Comstock & Webster 19695 / 2,4983 / 2,34133
Comstock et al 197627 / 16,91329 / 17,85433

The pooled result

With a random-effects model (REML), the pooled risk ratio is 0.49 (95% CI 0.34 to 0.70), p < 0.001. Taken alone, it says BCG halves the risk of tuberculosis.

The heterogeneity statistics say something else: I² = 92.2%, τ² = 0.3132, Q = 152.23 (df = 12), p < 0.001. The trials differ far more than chance would explain.

What the prediction interval adds

A confidence interval describes the uncertainty about the average effect. It gets narrower as studies are added, even if they disagree. A prediction interval describes the range of effects to expect in a new setting like those studied, so it includes the variation between studies.

On the log scale, the pooled estimate is −0.7145 with a standard error of 0.1798. The 95% prediction interval is:

−0.7145 ± 1.96 × √(0.3132 + 0.1798²) = −0.7145 ± 1.152

Back on the risk ratio scale, that is 0.15 to 1.55.

The interval crosses 1. The average effect is clearly protective, but a new setting might see a large benefit, or none. I² alone can't tell you that, because it is a proportion and not a range of effects (Riley et al., 2011; IntHout et al., 2016).

This calculation uses the normal distribution, as metafor does by default. Some authors use a t distribution with k − 2 degrees of freedom, which gives a slightly wider interval. Say which you used.

Does the choice of model matter?

ModelPooled RR (95% interval)95% prediction interval
REML, Wald0.49 (0.34 to 0.70)0.15 to 1.55
REML, Hartung–Knapp0.49 (0.33 to 0.73)0.14 to 1.76
Bayesian random effects0.49 (0.34 to 0.71)0.14 to 1.68

The Bayesian model used a flat prior on the pooled effect and a half-normal prior with scale 0.5 on the between-study standard deviation τ; its interval is a credible interval.

Here the three agree closely, which is reassuring and is partly because there are 13 trials. With few studies they can differ a good deal, and Hartung–Knapp intervals are then usually wider, with coverage closer to the stated 95%. For how to read frequentist and Bayesian results side by side, see One model, two answers. None of these models removes the heterogeneity. They only describe it.

Subgroups: a first look at why

A natural suspect is geography. Splitting the trials at 34 degrees of latitude, a cut-off chosen here purely for illustration:

SubgroupTrialsRR (95% CI)I²
Far from the equator (34 degrees or more)60.30 (0.21 to 0.42)67.1%
Near the equator (under 34 degrees)70.77 (0.59 to 1.00)69.9%

The test for subgroup differences gives Q = 18.00 (df = 1), p < 0.001. The difference is large, but the split throws away information: a trial at 33 degrees and one at 13 degrees are treated as the same, and another cut-off would give other numbers.

Meta-regression: using latitude as it is

Meta-regression models the effect as a function of a study characteristic. Berkey et al. (1995) used this very example. Regressing the log risk ratio on absolute latitude, with REML and Knapp–Hartung standard errors (Knapp and Hartung, 2003):

TermBSEtp95% CI
Intercept0.25150.28390.890.395−0.3734 to 0.8764
Latitude (per degree)−0.02910.0082−3.550.005−0.0472 to −0.0111

Each degree of latitude multiplies the risk ratio by 0.97, so each 10 degrees multiplies it by 0.75 (95% CI 0.62 to 0.90). The test of the moderator is F(1, 11) = 12.59, p = 0.005.

Latitude accounts for 75.6% of the between-study variance (R²): τ² falls from 0.3132 to 0.0763. It does not explain everything. Residual I² is 68.4%, and residual heterogeneity is still significant, Q(11) = 30.73, p = 0.001.

The model can then give the expected effect at a chosen latitude:

LatitudePredicted RR (95% CI)95% prediction interval
55 degrees0.26 (0.16 to 0.43)0.12 to 0.57
34 degrees0.48 (0.36 to 0.63)0.25 to 0.93
13 degrees0.88 (0.58 to 1.35)0.42 to 1.85

At 13 degrees, the lowest latitude in these trials, the confidence interval includes no effect. Addis Ababa is at about 9 degrees, where the same line gives 0.99 (0.61 to 1.60). That is outside the range of the data (13 to 55 degrees), so it is an extrapolation and not a finding.

How far to trust a meta-regression

  • It is observational. Even when every study is a trial, nobody randomised studies to latitudes. Latitude may stand in for something else; one long-standing explanation is exposure to environmental mycobacteria, which this analysis cannot test.
  • Other study characteristics travel with it. Year, allocation method and the population studied can all be tangled up with latitude.
  • Averages are not individuals. A study-level mean age can't tell you the effect in older people (ecological bias).
  • Have enough studies. The Cochrane Handbook advises against meta-regression with fewer than ten studies (section 10.11.4), and the usual guide is at least ten per characteristic modelled (section 10.11.5.1).
  • Plan it. Name the moderators in the protocol, keep them few, and say so if one was added after seeing the results (Thompson and Higgins, 2002).
  • Don't go beyond the data. Predict only within the range the studies cover.

Robustness and certainty

Leaving out each trial in turn, the pooled risk ratio stays between 0.45 and 0.53, so no single trial drives it. Egger's test gives p = 0.19, with no evidence of funnel-plot asymmetry, although the test is hard to interpret with this much heterogeneity.

For GRADE, an I² of 92% points to rating down for inconsistency. How far is a judgement. If a pre-specified moderator explains much of it, you might rate down one level and not two. Write the reason in a footnote, and expect a reader to disagree.

How to report it

Methods:

Risk ratios were pooled with a random-effects model, with the between-study variance estimated by restricted maximum likelihood. Heterogeneity was described with I², τ² and the 95% prediction interval. Sources of heterogeneity were explored by subgroup analysis and by random-effects meta-regression on absolute latitude, with the Knapp–Hartung adjustment to the standard errors; R² is the proportion of between-study variance accounted for by the moderator.

Results:

Across 13 trials, BCG vaccination was associated with a lower risk of tuberculosis (RR 0.49, 95% CI 0.34 to 0.70), with substantial heterogeneity (I² = 92.2%, τ² = 0.3132). The 95% prediction interval was 0.15 to 1.55, so the effect in a new setting could range from strong protection to none. In meta-regression, the risk ratio fell with increasing latitude (ratio per 10 degrees 0.75, 95% CI 0.62 to 0.90; p = 0.005), and latitude accounted for 75.6% of the between-study variance; residual heterogeneity remained (I² = 68.4%).

Doing it in Researchite

  1. In a systematic review study, open Meta-analysis and enter the studies, or use Paste from Excel. Add a subgroup for each study if you have one.
  2. The result shows the pooled estimate, I², τ² and the 95% prediction interval, with the forest plot. Change the Model to compare REML, Hartung–Knapp and Bayesian random effects.
  3. Under Meta-regression, choose Add a moderator, name it, and enter or paste each study's value.
  4. Read the coefficients, R² and the remaining heterogeneity. With one numeric moderator you also get a bubble plot.
  5. Enter a value under Predicted effect. A warning appears if it is outside the studies' range.
  6. Copy the R code to run the same model in metafor, and use Download for Word.

References

  • Berkey CS, Hoaglin DC, Mosteller F, Colditz GA. A random-effects regression model for meta-analysis. Statistics in Medicine. 1995;14(4):395–411.
  • Colditz GA, Brewer TF, Berkey CS, et al. Efficacy of BCG vaccine in the prevention of tuberculosis: meta-analysis of the published literature. JAMA. 1994;271(9):698–702.
  • Deeks JJ, Higgins JPT, Altman DG, McKenzie JE, Veroniki AA, Simmonds M (editors). Chapter 10: Analysing data and undertaking meta-analyses. In: Higgins JPT, Thomas J, Chandler J, et al. (editors). Cochrane Handbook for Systematic Reviews of Interventions, version 6.5.1. Cochrane, 2026.
  • IntHout J, Ioannidis JPA, Rovers MM, Goeman JJ. Plea for routinely presenting prediction intervals in meta-analysis. BMJ Open. 2016;6(7):e010247.
  • Knapp G, Hartung J. Improved tests for a random effects meta-regression with a single covariate. Statistics in Medicine. 2003;22(17):2693–2710.
  • Riley RD, Higgins JPT, Deeks JJ. Interpretation of random effects meta-analyses. BMJ. 2011;342:d549.
  • Thompson SG, Higgins JPT. How should meta-regression analyses be undertaken and interpreted? Statistics in Medicine. 2002;21(11):1559–1573.
  • Viechtbauer W. Conducting meta-analyses in R with the metafor package. Journal of Statistical Software. 2010;36(3):1–48.
Tesfahun Mulatu, photo

Tesfahun Mulatu

Epidemiologist and biostatistician with more than 10 years in academia and research, including multi-country and mixed-methods studies with local and international research institutions, and monitoring, evaluation and learning across Ethiopia’s development and humanitarian sectors on projects funded by UN agencies and international donors. Tesfahun’s work spans maternal and child health, sexual and reproductive health, gender-based violence and mental health, with over 19 publications.

Epidemiologist and biostatistician, founder of Researchite · LinkedIn

More guides