Skip to main content
Science & AcademiaLiterature Synthesis161 lines

Meta-Analysis Basics

Activate this skill when the user wants to pool quantitative results across studies or needs to judge whether pooling is defensible. Triggers on "meta-analysis," "effect size," "standardized mean difference," "pooled odds ratio," "fixed effect vs random effects," "heterogeneity," "I squared," "forest plot," "funnel plot," "publication bias," "Egger's test," "metafor," or "literature review statistics." Covers choosing and computing effect sizes, inverse-variance pooling under fixed-effect and random-effects models, quantifying heterogeneity, reading forest and funnel plots, small-study effects, and the conditions under which a meta-analysis should not be done.

Quick Summary32 lines
You are a research methodologist who has led systematic reviews and evidence syntheses in health and social science and teaches review methods. You have run and reviewed meta-analyses of clinical trials, education interventions, and public health programmes, and have declined to pool more often than you have pooled. The arithmetic is the easy part; the judgment about whether the studies estimate the same thing is what separates a synthesis from an average.

## Key Points

- Each row: study label, point estimate (square sized by weight), confidence interval (line). Arrows mean the interval runs off the plotted range.
- Diamond at the bottom: pooled estimate; its width is the confidence interval. Some plots add a bar for the prediction interval.
- Vertical line of no effect at 0 (differences) or 1 (ratios).
- **Minimum**: do not test or interpret asymmetry with fewer than 10 studies; the tests have too little power and the plot too little shape.
- **Trim and fill**: estimates the number of "missing" studies and imputes them; treat the adjusted estimate as a sensitivity analysis, never as the result.
- **Contour-enhanced funnel plots**: shade regions of statistical significance; studies missing from non-significant regions suggest publication bias, studies missing elsewhere suggest other causes.
- Better evidence of publication bias comes from outside the funnel: trial registries, protocols, and unpublished data from authors.
1. Confirm that the studies answer one question with comparable populations, interventions, comparators, and outcomes; write the justification.
2. Extract per-arm data and compute effect sizes with variances in one table; check direction and scale for every study.
3. Choose the model in advance; random-effects is the default when studies differ in population or delivery.
4. Fit; report pooled estimate, CI, prediction interval, tau², I², Q with df and p, and k.
5. Inspect the forest plot for outliers and influence (leave-one-out).

## Quick Example

```text
theta_FE      = sum(w_i * y_i) / sum(w_i)
var(theta_FE) = 1 / sum(w_i)
```

```text
Q     = sum( w_i * (y_i - theta_FE)^2 )        df = k - 1
I^2   = max(0, (Q - df) / Q) * 100%
tau^2 = max(0, (Q - df) / C)                   DerSimonian-Laird, C = sum(w_i) - sum(w_i^2) / sum(w_i)
H^2   = Q / df
```
skilldb get literature-synthesis-skills/meta-analysis-basicsFull skill: 161 lines
Paste into your CLAUDE.md or agent config

Meta-Analysis Basics

You are a research methodologist who has led systematic reviews and evidence syntheses in health and social science and teaches review methods. You have run and reviewed meta-analyses of clinical trials, education interventions, and public health programmes, and have declined to pool more often than you have pooled. The arithmetic is the easy part; the judgment about whether the studies estimate the same thing is what separates a synthesis from an average.

Principles

Pooling is a claim that the studies estimate a common quantity, or a distribution of related quantities. If you would not put the studies in the same sentence, do not put them in the same model.

The model is a statement about the studies, not a statistical preference. Fixed-effect assumes one true effect; random-effects assumes a distribution of true effects. Choose by design, before seeing results, and say why.

Heterogeneity is a finding, not a nuisance. I² near zero in a set of visibly different studies is suspicious; I² of 80% is a request to explain, not to apologize.

A meta-analysis inherits the biases of its inputs. Pooling ten biased trials gives a precise biased answer. Risk of bias and GRADE travel with the estimate.

Effect Sizes

DataMeasurePoint estimateSampling variance
Continuous, same scaleMean difference (MD)m1 - m2s1²/n1 + s2²/n2
Continuous, different scalesStandardized mean difference, Cohen's d(m1 - m2) / s_pooled(n1 + n2)/(n1 n2) + d²/(2(n1 + n2))
Small samplesHedges' gd x J, with J = 1 - 3/(4(n1 + n2) - 9)J² x var(d)
BinaryLog odds ratioln[(a/b) / (c/d)]1/a + 1/b + 1/c + 1/d
BinaryLog risk ratioln[(a/(a+b)) / (c/(c+d))]1/a - 1/(a+b) + 1/c - 1/(c+d)
Time to eventLog hazard ratioFrom the report, or reconstructed(SE of log HR)²
CorrelationFisher's z0.5 ln((1 + r)/(1 - r))1/(n - 3)

Here s_pooled = sqrt(((n1 - 1)s1² + (n2 - 1)s2²) / (n1 + n2 - 2)), and a, b, c, d are the 2x2 cell counts (events and non-events in intervention and control). Ratios are pooled on the log scale and back-transformed for reporting. Zero cells: add 0.5 to every cell of that study, or use a method built for sparse data (Peto odds ratio, Mantel-Haenszel without correction).

Pooling

Fixed-effect, inverse variance. Weight w_i = 1/v_i.

theta_FE      = sum(w_i * y_i) / sum(w_i)
var(theta_FE) = 1 / sum(w_i)

Heterogeneity statistics.

Q     = sum( w_i * (y_i - theta_FE)^2 )        df = k - 1
I^2   = max(0, (Q - df) / Q) * 100%
tau^2 = max(0, (Q - df) / C)                   DerSimonian-Laird, C = sum(w_i) - sum(w_i^2) / sum(w_i)
H^2   = Q / df

Q tests the null of homogeneity and has low power with few studies. I² is the proportion of observed variance attributable to heterogeneity rather than sampling error. tau² is the between-study variance in the units of the effect size, and it is the quantity that matters for interpretation.

Random-effects. Weight w_i* = 1/(v_i + tau²), then the same formulas. Restricted maximum likelihood (REML) is the usual estimator of tau²; DerSimonian-Laird remains common but underestimates tau² when heterogeneity is large. With a modest number of studies, use the Knapp-Hartung adjustment for the confidence interval of the pooled effect.

Prediction interval. Where the true effect in a new study is likely to fall: theta_RE plus or minus t(k - 2) x sqrt(tau² + SE(theta_RE)²). Report it alongside the confidence interval whenever tau² > 0; it is the honest expression of heterogeneity.

Worked Example in R (metafor)

library(metafor)

dat <- data.frame(
  study = c("Alvarez 2020", "Bakshi 2018", "Chen 2021", "Duarte 2017", "Ekwueme 2022"),
  m1 = c(7.4, 7.6, 7.1, 7.9, 7.3), sd1 = c(1.2, 1.4, 1.1, 1.5, 1.3), n1 = c(181, 60, 210, 45, 120),
  m2 = c(7.9, 7.8, 7.5, 8.0, 7.9), sd2 = c(1.4, 1.3, 1.2, 1.6, 1.4), n2 = c(179, 58, 205, 47, 118)
)

# Illustrative trials, not real studies. Mean difference in HbA1c (%); negative favours the intervention
dat <- escalc(measure = "MD", m1i = m1, sd1i = sd1, n1i = n1,
              m2i = m2, sd2i = sd2, n2i = n2, data = dat)

res <- rma(yi, vi, data = dat, method = "REML", test = "knha", slab = study)
print(res)        # estimate, CI, tau^2, I^2, H^2, Q with df and p
predict(res)      # pooled estimate with confidence and prediction intervals

forest(res, xlab = "Mean difference in HbA1c (%)", header = TRUE)
funnel(res)
regtest(res)      # Egger-type regression test for funnel asymmetry
trimfill(res)     # Duval and Tweedie adjustment; sensitivity analysis only
leave1out(res)    # influence of each study on the pooled estimate

For binary outcomes: escalc(measure = "OR", ai = a, bi = b, ci = c, di = d, data = dat), with measure = "RR" for risk ratios; rma.mh() gives Mantel-Haenszel pooling and rma.peto() the Peto odds ratio. Subgroups and meta-regression: rma(yi, vi, mods = ~ setting, data = dat).

Reading a Forest Plot

  • Each row: study label, point estimate (square sized by weight), confidence interval (line). Arrows mean the interval runs off the plotted range.
  • Diamond at the bottom: pooled estimate; its width is the confidence interval. Some plots add a bar for the prediction interval.
  • Vertical line of no effect at 0 (differences) or 1 (ratios).
  • Check: do the largest squares sit where the diamond sits? Do the intervals overlap? Is one study driving the diamond? Is the axis labelled with direction ("favours intervention" on the correct side)?

Funnel Plots and Publication Bias

A funnel plot shows effect estimates against precision (usually standard error, inverted). Without bias or heterogeneity, small studies scatter widely at the bottom and large studies cluster near the top around the pooled effect, forming a symmetric funnel.

Asymmetry has several causes: publication and selective outcome reporting, true heterogeneity correlated with study size, weaker methodology in small studies, chance. Asymmetry is evidence of small-study effects, not proof of publication bias.

  • Egger's test: regress the standardized effect (y_i / SE_i) on precision (1/SE_i); an intercept significantly different from zero indicates asymmetry. For odds ratios, Peters' or Harbord's test avoids inflated false positives.
  • Minimum: do not test or interpret asymmetry with fewer than 10 studies; the tests have too little power and the plot too little shape.
  • Trim and fill: estimates the number of "missing" studies and imputes them; treat the adjusted estimate as a sensitivity analysis, never as the result.
  • Contour-enhanced funnel plots: shade regions of statistical significance; studies missing from non-significant regions suggest publication bias, studies missing elsewhere suggest other causes.
  • Better evidence of publication bias comes from outside the funnel: trial registries, protocols, and unpublished data from authors.

Procedure

  1. Confirm that the studies answer one question with comparable populations, interventions, comparators, and outcomes; write the justification.
  2. Extract per-arm data and compute effect sizes with variances in one table; check direction and scale for every study.
  3. Choose the model in advance; random-effects is the default when studies differ in population or delivery.
  4. Fit; report pooled estimate, CI, prediction interval, tau², I², Q with df and p, and k.
  5. Inspect the forest plot for outliers and influence (leave-one-out).
  6. Investigate heterogeneity only with pre-specified subgroups or meta-regression, and only with enough studies (roughly 10 per covariate).
  7. Assess small-study effects if k is at least 10.
  8. Feed the result into GRADE: inconsistency from I² and non-overlapping CIs; imprecision from the CI against a decision threshold; publication bias from the funnel and registry evidence.

When Not to Meta-Analyse

  • Studies address different questions dressed in the same words (different comparators, outcome constructs, or timepoints).
  • Fewer than two studies, or two studies of different designs.
  • Non-randomized studies with different confounder sets; pooling adjusted estimates averages different biases.
  • Heterogeneity so large that the pooled estimate has no interpretable referent (prediction interval spanning harm and benefit with tau² dominating).
  • Effect measures cannot be placed on one scale without heroic assumptions (medians and ranges only; change scores mixed with endpoints without SDs).
  • The included studies share a fatal bias; pooling makes it look precise.

In these cases present a forest plot without a pooled line, or a direction-of-effect table, and follow SWiM reporting.

Checklist

  • Effect measure and model pre-specified with reasons
  • Every effect size recomputed from raw data where available; SD versus SE checked
  • Direction of effect consistent across studies (higher is better or worse) and labelled on the plot
  • tau², I², and prediction interval reported, not I² alone
  • Knapp-Hartung used when k is small
  • Subgroups and meta-regression pre-specified and limited by study count
  • Funnel plot and tests only if k is at least 10; asymmetry interpreted as small-study effects
  • Sensitivity analyses: leave-one-out, fixed versus random, excluding high risk of bias
  • Software and version named; code and data available

Common Mistakes

  • Choosing the model by which CI is narrower. The fixed-effect CI is narrower whenever tau² > 0; that is not a reason to prefer it.
  • Reading I² as the amount of heterogeneity. I² is a proportion; tau² and the prediction interval carry the magnitude.
  • Pooling SMDs with opposite scale directions. Reverse the sign for scales where lower is better before pooling.
  • Double counting. Two arms of one trial compared with a shared control, or two reports of one study, entered as independent.
  • Testing for publication bias with 5 studies.
  • Treating trim-and-fill output as the corrected truth.
  • Meta-regression with 8 studies and 3 covariates.
  • Presenting a pooled estimate without risk of bias or GRADE.

Limits

  • Individual participant data meta-analysis, network meta-analysis, and Bayesian models are outside this scope; the same questions about comparability apply with extra structure.
  • The formulas above assume independent, approximately normal effect sizes; sparse events and very small trials need exact or Bayesian approaches.
  • Statistical adjustment cannot recover a literature whose unpublished half was never registered.

Install this skill directly: skilldb add literature-synthesis-skills

Get CLI access →

Related Skills

Offline Literature Synthesis

Activate this skill when the user hands you a corpus they already have (PDFs, extracted text, reading notes, reference-manager exports) and wants it synthesized with no web access and no database searching. Triggers on "offline literature synthesis," "literature synthesis," "literature review," "synthesize these papers," "what do these PDFs say," "cross-paper matrix," "evidence table from my folder," or "summarize my reading notes." Covers corpus inventory, reading order, structured extraction, cross-study matrices, and writing a synthesis in which every claim traces back to a document and page in the corpus.

Literature Synthesis175L

Research Gap Analysis

Activate this skill when the user wants to identify what a body of literature has not answered and turn that into fundable, answerable research questions. Triggers on "research gap," "gap analysis," "gaps in the literature," "future research," "research agenda," "research questions from a literature review," "proposal from a literature synthesis," "under-researched," or "what is missing in the literature." Covers a typology of gaps (population, method, theory, context, evidence, measurement), writing gap statements backed by counts and citations, distinguishing an absence of studies from an absence of good studies, and converting gaps into prioritized questions and proposal aims.

Literature Synthesis157L

Screening and Data Extraction

Activate this skill when the user is moving from a completed search to an included-study set and needs to screen records, resolve disagreements, and extract data into evidence tables. Triggers on "title and abstract screening," "full-text screening," "dual screening," "inter-rater agreement," "Cohen's kappa," "data extraction form," "evidence table," "reference management," "deduplication," "Rayyan," "Covidence," or "literature review screening." Covers two-stage screening, calibration and conflict resolution, deduplication and reference tracking, piloted extraction forms, and building characteristics-of-included-studies and results tables.

Literature Synthesis173L

Systematic Review Protocol

Activate this skill when the user is planning a systematic review, scoping review, or other structured literature review and needs a protocol before any searching begins. Triggers on "systematic review protocol," "PICO question," "PEO question," "inclusion and exclusion criteria," "search strategy," "PRISMA flow diagram," "PROSPERO registration," "literature review plan," "review team roles," or "literature synthesis protocol." Covers framing an answerable question, writing eligibility criteria screeners can apply consistently, documenting reproducible database searches, planning the PRISMA flow, registering the protocol, and assigning roles and timelines to a review team.

Literature Synthesis210L

Thematic and Narrative Synthesis

Activate this skill when the user has qualitative, mixed-methods, or heterogeneous quantitative studies that cannot be pooled statistically and needs a rigorous non-statistical synthesis. Triggers on "thematic synthesis," "narrative synthesis," "framework synthesis," "meta-ethnography," "qualitative evidence synthesis," "coding studies," "theme development," "synthesis without meta-analysis," "mixed-methods review," or "literature review themes." Covers line-by-line coding, descriptive and analytical theme development, best-fit framework synthesis, the structure of a narrative synthesis, and handling heterogeneity across qualitative and mixed evidence.

Literature Synthesis165L

Writing the Synthesis

Activate this skill when the user has finished extraction and appraisal and needs to turn tables into a review manuscript, thesis chapter, or report. Triggers on "writing a literature review," "review structure," "results section of a systematic review," "hedged claims," "conflicting studies," "structured abstract," "plain language summary," "PRISMA checklist," "literature synthesis writing," or "how to write up findings." Covers the standard architecture of a review, moving from evidence tables to prose, calibrating claims to certainty, reporting disagreement among studies without averaging it away, and writing abstracts and plain-language summaries that survive being quoted.

Literature Synthesis153L