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 () and its variance ().
Effect sizes based on means
Cohen's d standardizes the raw difference between two group means using the pooled standard deviation:
- = Cohen's d
- = mean of group 1
- = mean of group 2
- = pooled standard deviation
- = pooled standard deviation
- = sample sizes of group 1 and group 2
- = 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:
- = Hedges' g (bias-corrected d)
- = Cohen's d
- = small-sample bias-correction factor
- = degrees of freedom
The variance of d (needed to weight the study in the pooled analysis) is:
- = variance of Cohen's d
- = sample sizes of group 1 and group 2
- = 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:
- = odds ratio
- = 2×2 table cell counts: a = exposed with event, b = exposed without event, c = unexposed with event, d = unexposed without event
- = variance of the log odds ratio
- = 2×2 table cell counts, same as in the odds ratio above
The log risk ratio, computed on the same table, is:
- = risk ratio
- = 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:
- = Fisher's z-transformed correlation
- = Pearson correlation coefficient
- = variance of the Fisher-transformed correlation
- = 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 () 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):
- = Cochran's Q, the heterogeneity statistic
- = weight given to study i
- = effect size of study i
- = pooled (overall) effect size
- = 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:
- = proportion of total variance due to real heterogeneity
- = Cochran's Q, the heterogeneity statistic
- = degrees of freedom (k − 1)
I² is a relative measure: it is the proportion of the observed variation that reflects true differences between studies (Higgins & Thompson, 2002), not the absolute amount of that variation. The familiar labels of about 25%, 50%, and 75% for low, moderate, and high heterogeneity should therefore not be used to classify how much the true effects vary (Borenstein et al., 2017). To describe the absolute spread, report τ (or τ²) and a prediction interval alongside I². See Heterogeneity in meta-analysis for how to interpret each statistic.
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):
- = between-subgroup heterogeneity statistic
- = weight given to subgroup g
- = pooled effect size of subgroup g
- = overall pooled effect size
- = 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 of 0 — would need to exist to bring a significant pooled result down to non-significance:
- = Rosenthal's fail-safe N
- = standard normal z-score of study i
- = 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 et al. (2009) — see the full reference list for further reading on each method.
Book Borenstein, M., Hedges, L. V., Higgins, J. P. T., & Rothstein, H. R. (2009). Introduction to meta-analysis. John Wiley & Sons.
Article Borenstein, M., Higgins, J. P. T., Hedges, L. V., & Rothstein, H. R. (2017). Basics of meta-analysis: I2 is not an absolute measure of heterogeneity. Research Synthesis Methods, 8(1), 5–18. https://doi.org/10.1002/jrsm.1230
Article Higgins, J. P. T., & Thompson, S. G. (2002). Quantifying heterogeneity in a meta-analysis. Statistics in Medicine, 21(11), 1539–1558. https://doi.org/10.1002/sim.1186