Meta-analysis methods and formulas

This page collects the most common formulas behind each step of a meta-analysis described in Meta-analysis steps — enough to understand how the numbers are actually computed, not an exhaustive reference. ProMeta implements a much wider range of formulas, covering many more effect-size types, models, and edge cases than shown here. In all formulas below, k is the number of studies, and each study i contributes an effect size (Yi) and its variance (vi).

Each study's effect size and weight feed a pooled estimate; heterogeneity, moderators, and publication bias are then checked around that pooled estimate

Effect sizes based on means

Cohen's d standardizes the raw difference between two group means using the pooled standard deviation:

d= M1−M2 SDpooled d= Cohen's dM1= mean of group 1M2= mean of group 2SDpooled= pooled standard deviation
SDpooled= (n1−1) SD12 + (n2−1) SD22 n1+n2−2 SDpooled= pooled standard deviationn1,n2= sample sizes of group 1 and group 2SD1,SD2= standard deviations of group 1 and group 2

Cohen's d is slightly biased in small samples. Hedges' g corrects for this with a small-sample correction factor J:

g=d×J , J=1− 34df−1 g= Hedges' g (bias-corrected d)d= Cohen's dJ= small-sample bias-correction factordf= degrees of freedom

The variance of d (needed to weight the study in the pooled analysis) is:

vd= n1+n2 n1n2 + d2 2(n1+n2) vd= variance of Cohen's dn1,n2= sample sizes of group 1 and group 2d= Cohen's d

Effect sizes based on binary data

For a 2×2 table of a study (a, b, c, d = cell counts), the log odds ratio and its variance are:

ln(OR)= ln adbc OR= odds ratioa,b,c,d= 2×2 table cell counts: a = exposed with event, b = exposed without event, c = unexposed with event, d = unexposed without event
vln(OR)= 1a+ 1b+ 1c+ 1d vln(OR)= variance of the log odds ratioa,b,c,d= 2×2 table cell counts, same as in the odds ratio above

The log risk ratio, computed on the same table, is:

ln(RR)= ln aa+b cc+d RR= risk ratioa,b,c,d= 2×2 table cell counts: a = events in the exposed group, b = non-events in the exposed group, c = events in the unexposed group, d = non-events in the unexposed group

Both are analyzed on the log scale (where sampling distributions are closer to normal) and only exponentiated back to OR/RR for reporting.

Effect sizes based on correlations

Pearson's r is not analyzed directly, since its sampling distribution is skewed for values far from zero. It is first converted to Fisher's Z:

Zr= 0.5×ln 1+r1−r Zr= Fisher's z-transformed correlationr= Pearson correlation coefficient
vZr= 1n−3 vZr= variance of the Fisher-transformed correlationn= sample size

Pooled results are converted back to the r scale only at the end, for reporting.

Once an effect size is computed for every study, they still need to be combined into a pooled estimate — see Aggregating effect sizes and Multilevel models for the models that do this, and the weights (wi) and pooled estimate (M) referenced below.

Heterogeneity

Q tests whether the observed variation across study effect sizes is larger than expected from sampling error alone (its null distribution is chi-squared with k − 1 degrees of freedom):

Q= ∑i=1k wi (Yi−M)2 Q= Cochran's Q, the heterogeneity statisticwi= weight given to study iYi= effect size of study iM= pooled (overall) effect sizek= number of studies

Q is sensitive to the number of studies, so I² is used to quantify heterogeneity as a percentage of total variation, independent of k:

I2= max(0, Q−dfQ ) ×100% I2= proportion of total variance due to real heterogeneityQ= Cochran's Q, the heterogeneity statisticdf= degrees of freedom (k − 1)

As a rule of thumb (Higgins & Thompson, 2002), I² around 25%, 50%, and 75% are considered low, moderate, and high heterogeneity — though this should always be read alongside the confidence interval around I², not as a hard cutoff.

Moderators

When a categorical moderator splits studies into p subgroups, Q decomposes into a between-subgroups component, comparing each subgroup's pooled mean to the overall mean M, and a within-subgroups component (how much heterogeneity remains inside each subgroup):

QB= ∑g=1p wg (Mg−M)2 QB= between-subgroup heterogeneity statisticwg= weight given to subgroup gMg= pooled effect size of subgroup gM= overall pooled effect sizep= number of subgroups

A continuous moderator is tested instead with a weighted meta-regression, where the effect size is regressed on the moderator using the same inverse-variance weights as the pooled model above.

Publication bias

Rosenthal's Fail-safe N estimates how many additional, unpublished null-result studies — each contributing a Zi of 0 — would need to exist to bring a significant pooled result down to non-significance:

Nfs= (∑i=1kZi)2 2.706 −k Nfs= Rosenthal's fail-safe NZi= standard normal z-score of study ik= number of studies

Fail-safe N only addresses one specific failure mode (studies missing entirely) and says nothing about selective outcome or analysis reporting within studies that were published. It is normally reported alongside, not instead of, a funnel plot and Egger's regression test (which regresses each study's standardized effect on its precision, testing whether smaller, less precise studies systematically report larger effects — the visual asymmetry a funnel plot shows).

References

The formulas above follow the notation and derivations in Borenstein, Hedges, Higgins, & Rothstein (2009), Introduction to meta-analysis — see the full reference list for further reading on each method.