How this calculation works
Fit random-effects meta-regression with within-study standard errors and one or two study-level moderators. Estimate residual heterogeneity by REML and report conventional coefficient uncertainty.
wᵢ=1/(sᵢ²+τ²); β=(XᵀWX)⁻¹XᵀWy; REML minimizes Σ log(sᵢ²+τ²)+log|XᵀWX|+Σwᵢ(yᵢ−xᵢβ)².A worked example
The eight studies yield moderator slope 0.590886 and REML residual variance 0.000000.
Good to know
At most 100 independent studies; 1–2 moderators plus intercept; at least three residual degrees of freedom; positive standard errors. Scalar REML heterogeneity, zero boundary included. Conventional normal uncertainty; no Knapp–Hartung, dependent-effect model or publication-bias correction.
Reference: Metafor REML meta-regression reference (opens in a new tab) ↗
Separate sampling error from unexplained heterogeneity
Meta-regression relates study effect estimates to study-level moderators while allowing residual differences among studies. Each effect comes with its own within-study standard error. The random-effects component adds a common residual variance, tau squared, after accounting for the entered moderators rather than assuming every study estimates exactly the same conditional effect.
The calculation fits an intercept and one or two moderator slopes using restricted maximum likelihood for that variance. It reports conventional coefficient standard errors and residual weighted dispersion. The effect scale must already be chosen: for example, log risk ratios should be entered as logs with their corresponding log-scale standard errors.
Compare this with the Meta analysis calculator from effect sizes and standard errors. Estimate moderator slopes with within-study standard errors and residual between-study heterogeneity,not just a pooled effect.
Enter one independent effect per study
Each study contributes an effect estimate, a positive standard error and one moderator row. The lists must align exactly. The calculator adds the intercept, so moderators should not include a constant column. Standard errors are not sampling variances; squaring is performed internally when forming the study weights.
Multiple outcomes from the same study are usually correlated and cannot automatically be treated as independent rows. This page does not fit a multilevel covariance structure or a shared-control dependence model. Combining such effects first, or using an analysis that explicitly models their covariance, is a separate methodological decision.
See how the random-effects weights change
At a proposed tau squared, each study receives weight one divided by the sum of its sampling variance and tau squared. A larger residual heterogeneity estimate reduces the relative dominance of studies with very small standard errors. Moderator coefficients are obtained by weighted least squares at those weights.
The restricted likelihood also includes the determinant of the weighted design information. That adjustment distinguishes REML from simply minimizing the weighted residual sum of squares. The variance search includes the zero boundary explicitly, because a nonnegative heterogeneity estimate may legitimately be zero even when observed effects are not identical.
Interpret the moderator in the example
The prefilled example has eight independent study effects and one numerical moderator. The slope describes the expected change in effect for a one-unit moderator increase on the entered effect scale. Centering that moderator would change the intercept while leaving its fitted slope and fitted study means equivalent.
A zero REML variance estimate in this small example means that no positive residual variance improves the stated restricted likelihood over its boundary. It does not prove that all relevant studies have identical true effects. With few studies, heterogeneity estimation can be uncertain even when a numerical optimum is well resolved.
Keep study associations separate from individual effects
A study-level moderator may summarize a population, design feature or treatment setting. Its coefficient is an association across study estimates, conditional on the included moderators. It does not automatically identify what would happen to an individual participant if that same characteristic changed by one unit.
Confounding between study characteristics and measurement differences can create apparent slopes. Screening many candidate moderators after inspecting the results also changes the evidential context. This calculator does not perform a causal adjustment, variable-selection correction, publication-bias correction or an individual-participant-data analysis.
Know the uncertainty convention
The reported standard errors use the fitted weighted information matrix and conventional normal-theory coefficient uncertainty. They do not include a Knapp–Hartung adjustment or a profile-likelihood interval for tau squared. Those alternative conventions can matter substantially when the number of studies is small or the moderators explain little variation.
Residual Q is calculated at the fitted random-effects weights and is shown as a diagnostic quantity. Do not compare it with an unrelated fixed-effect heterogeneity statistic without matching the definition. The residual degrees of freedom equal the number of studies minus the number of fitted mean coefficients, including the intercept.
A finite REML search is a numerical check
The bounded scalar search expands its upper range until a finite minimum is bracketed, compares the interior optimum with zero and rejects singular weighted designs. Nearly duplicate moderators or insufficient studies can make coefficient information unstable even when all entered standard errors are positive.
At least three residual study degrees of freedom are required for this educational implementation. A converged search does not diagnose selective reporting or certify generalizability beyond the observed moderator range. Preserve effect definitions, transformations, moderator coding and the REML uncertainty convention when carrying the fitted coefficients into a report.
A few questions, answered
Should I enter variance or standard error?
Enter a positive standard error; the calculator squares it internally.
Can tau squared be zero?
Yes. The REML objective is compared explicitly with its nonnegative zero boundary.
Are these Knapp–Hartung errors?
No. The reported uncertainty uses the conventional fitted weighted information matrix.
Can I include multiple effects per study?
Only if their independence is justified; correlated effects require a different covariance model.