How to Do Meta-Analysis← Back to the workspace
A PRACTICAL SCIENTIST’S GUIDE

From individual papers to a combined answer.

Learn what a meta-analysis does, how to enter and check study data, and how to interpret the result.

What would a scientist use this for?

A meta-analysis combines numerical results from studies investigating a shared question. For example: “Does UV exposure reduce the germination of Metarhizium spores?” Each study provides a separate result; a defensible synthesis estimates the overall effect and how much it varies among studies.

For practice, we will use the published BCG vaccination and tuberculosis dataset. The task is to compare tuberculosis risk in vaccinated and control groups across 13 studies.

This walkthrough is a numerical learning example. A research project also needs a documented search, eligibility criteria, study-quality assessment, and scientific judgement about whether pooling is appropriate.

STEP 1 · STUDY DATA

Start with one study

In Aronson (1948), the data are:

GroupTuberculosis casesTotal participants
Vaccinated4123
Control11139

The total includes people with and without tuberculosis. In the vaccinated group, 4 cases + 119 non-cases = 123 participants.

In the workspace: open Papers to define your question and group names. Then open Extract & review, choose binary outcomes, and add a comparison. Enter the cases and totals in the same group order as the table.

Record the source, outcome and assessment time, then check the verification box only after comparing the row with the paper. One study is enough to understand an effect size; you need at least two eligible independent comparisons to run the synthesis.

STEP 2 · EFFECT SIZE

Calculate the risk ratio

Vaccinated risk is 4/123 ≈ 3.3%; control risk is 11/139 ≈ 7.9%. Dividing these risks gives RR ≈ 0.41. The observed risk in the first group is about 41% of that in the control group.

Try it yourself

Change these practice counts. This calculator does not change your saved project.

RR = 0.41 · vaccinated risk 3.3% · control risk 7.9%

RR = (cases₁ / total₁) / (cases₂ / total₂). This practice calculator uses observed risks without a continuity correction or confidence interval.

RR below 1Fewer events in group 1
RR equal to 1No difference in risk
RR above 1More events in group 1

Whether fewer events is beneficial depends on the outcome: fewer infections and fewer recoveries have different practical meanings.

STEP 3 · MATCH THE METHOD

Choose an effect for your research question

What the studies reportMethod supported hereWhat to check
Events and totals in two independent groupsRisk ratioThe same event definition, group order and defensible assessment time.
Group means, SDs and sample sizesHedges’ gThe same construct and direction; use SD, not SE.
Independent Pearson correlations and sample sizesFisher-z correlation poolingThe same pair of constructs and consistent variable coding.

For fungal germination, a paper might report counts or replicate-level means and SDs. The correct input and sample size depend on the experimental design. Spores nested within one plate should not automatically be treated as independent experimental replicates.

In the workspace: use Extract & review for risk ratios or Hedges’ g, or Correlations for Pearson r. This site does not currently fit raw mean differences, odds ratios, hazard ratios, or dependent-effects models.

STEP 4 · COMBINE STUDIES

Choose the model for the question

Common effectAssumes one underlying true effect. Differences in observed effects reflect sampling error under the model.
Random effectsAllows underlying effects to vary among study settings. Estimates their mean and between-study variance.

Choose based on the scientific question and design, before comparing which model gives a smaller p value. A random-effects model cannot repair incompatible outcomes or dependent observations.

In the workspace: open Analyse, review the comparability statement, choose a model, and click Run checked dataset. The random-effects option uses DerSimonian–Laird (DL) with normal confidence intervals.

Validate with the published BCG counts

When all 13 published study tables are entered correctly, the DL reanalysis gives a pooled RR ≈ 0.49 (95% CI 0.34–0.70), with Q ≈ 152.2330, I² ≈ 92.12%, and τ² ≈ 0.3088.

For a precise numerical comparison, the pooled log risk ratio is approximately −0.71411722, SE 0.17874209, and τ² 0.30876026. The metafor command is rma(yi, vi, data=dat, method="DL"), after calculating log risk ratios from the published counts.

The REML example in metafor’s documentation has slightly different variance and heterogeneity estimates. This site’s original Analyse page uses DL, so compare like with like. The trial follow-up periods and study designs differ; reproducing a benchmark is not a substitute for assessing eligibility and comparability.

Open all 13 study tables and the publication citation ↗

STEP 5 · READ THE RESULT

Understand the forest plot

What you seeWhat it represents
One rowOne study’s effect.
SquareThe study estimate; a larger square has greater weight.
Horizontal lineThe study’s 95% confidence interval.
DiamondThe pooled estimate and its confidence interval.
No-effect reference1 for a risk ratio; 0 for Hedges’ g or a correlation.

The BCG example’s pooled risk ratio of about 0.49 indicates roughly half the risk in vaccinated groups compared with control groups, on average under the model. The confidence interval describes uncertainty around the average, rather than the full spread of study effects.

Look at the variation too

I² around 92% indicates substantial heterogeneity in this example. It does not mean that 92% of studies are wrong. Consider differences in study populations, methods and outcomes before interpreting the average.

Q summarises heterogeneity around the common-effect estimate; τ² estimates between-study variance on the analysis scale. In the original workspace, I² uses the Q-based convention, and a DL τ² estimate is reported even when the common-effect weights use no added variance.

The funnel plot, shown with at least ten checked studies, displays effects against their standard errors. Asymmetry has several possible causes and does not prove publication bias.

STEP 6 · PRESERVE THE EVIDENCE

Save and reproduce the analysis

Export project JSON as a backup, and export the data CSV from Extract & review. After running a checked analysis, use its result controls to save the calculation results, forest SVG and R reproduction script.

Read the Methods section for the formulas and limitations. The R script describes the calculations; a complete scientific report also needs your literature-search methods, eligibility decisions, quality assessment and interpretation.

Before using your own studies: define a question, verify every value, check dependence and effect direction, select a defensible model, then inspect and export the result.

Project data stays in this browser and does not automatically sync to another device. Uploaded PDFs and correlation projects need separate backups. Loading a synthetic example replaces the current two-group dataset after confirmation, so export existing work first.

Source of the published example

Colditz et al. (1994). Efficacy of BCG vaccine in the prevention of tuberculosis: Meta-analysis of the published literature. JAMA, 271, 698–702. The counts are distributed as metadat::dat.bcg (also named dat.colditz1994).

Dataset and citation ↗ · Model definitions ↗