How this calculation works
Combine independent two-arm study contrasts across a connected treatment network using a fixed common-effect consistency model. Return all pairwise differences, covariance and weighted residuals on the supplied additive scale.
Xᵢt = 1(t=secondᵢ)−1(t=firstᵢ); β̂=(XᵀWX)⁻¹XᵀWy; Var(cᵀβ̂)=cᵀ(XᵀWX)⁻¹c; Q=Σwᵢ(yᵢ−Xᵢβ̂)².A worked example
Four displayed contrasts yield effects [0, 0.949367089, 2.724683544] relative to treatment 1. Treatment 3 minus treatment 2 is 1.775316456, using the full network covariance.
Good to know
3–8 integer-coded treatments, 2–100 independent two-arm contrasts, distinct endpoints, positive standard errors and one common additive effect scale. Connected, numerically full-rank network only. Fixed common-effect consistency model, normal intervals; no multi-arm covariance, random heterogeneity, study-quality adjustment, ranking, separated inconsistency test or clinical recommendation.
Reference: Balduzzi and colleagues: frequentist network meta-analysis (opens in a new tab) ↗
The comparison network
A study comparing treatments 1 and 2 informs their difference directly. A study comparing 2 and 3 can also inform the difference between 1 and 3 when the same outcome scale and a common treatment-effect structure are defensible. The network supplies equations connecting those effects.
Each input row contains two integer treatment labels, an estimated effect for the second treatment minus the first, and its standard error. Labels identify interventions rather than their rank. Changing a label from 2 to 20 changes the identifier, not an assumed dose or spacing.
Compare this with the Meta analysis calculator from effect sizes and standard errors. Fit treatment effects across a connected comparison network and return indirect comparisons and network residuals;ordinary pairwise pooling does not combine a treatment network.
Choose an interpretable scale
Use additive differences on a common analysis scale. Mean differences must share measurement units. A log odds ratio may be appropriate when all rows contain log odds ratios with corresponding log-scale standard errors. Entering an odds ratio alongside a log odds ratio creates an uninterpretable system.
Direction deserves an explicit audit before fitting. If a published study reports first minus second, either reverse the treatment labels or negate its effect. Keep its standard error positive and unchanged. Reversing both labels and sign leaves the information in that row unchanged.
Why the reference is arbitrary
One treatment is assigned effect zero to identify the model. The remaining treatment effects are fitted by inverse-variance weighted least squares. The design row contains minus one for the first treatment and plus one for the second, omitting the selected reference column.
Only contrasts between treatments have an invariant interpretation. Selecting treatment 3 as the reference changes the coordinates of the fitted vector but preserves every pairwise difference and its standard error. The covariance matrix is reported with its explicit nonreference treatment order to make later calculations reproducible.
Follow the supplied four studies
The first three rows describe effects 1, 2, and 2.5 around a three-treatment triangle, each with standard error 0.5. Their direct effects do not close exactly because 1 plus 2 differs from 2.5. A fourth comparison estimates treatment 2 minus treatment 1 as 1.2 with standard error 0.6.
The common-effect fit balances all four rows rather than selecting one path through the triangle. With reference 1, the fitted effects are approximately 0.949367 for treatment 2 and 2.724684 for treatment 3. The resulting treatment 3 minus treatment 2 contrast is approximately 1.775316.
Read uncertainty and residuals together
For each pair, the variance comes from applying the contrast vector to the complete fitted covariance matrix. Adding the separate treatment-effect variances without their covariance generally gives the wrong answer. The displayed normal interval uses the standard error of that pairwise contrast directly.
Residuals show each observed contrast minus the network prediction. Their weighted squared sum is Q, with study count minus treatment count plus one residual degrees of freedom. This is a combined lack-of-fit summary under the stated common-effect model, rather than a formal separation of heterogeneity from inconsistency.
Check the study design first
The calculation assumes independent two-arm studies. Splitting a three-arm trial into several rows would create correlated effects sharing participants. Treating those rows as independent can overstate precision, so this interface deliberately excludes that workflow instead of silently supplying an invalid multi-arm adjustment.
Connectivity is a mathematical prerequisite. If one subset of treatments has no comparison path to the others, their relative location is unidentified. The information matrix check rejects disconnected and numerically singular networks. Very unequal standard errors can also make the system too poorly conditioned to trust.
Use the fit as a bounded synthesis
Transitivity concerns whether an indirect comparison is clinically or scientifically meaningful. Differences in populations, outcome definitions, follow-up or effect modifiers can defeat that assumption even when the equations solve perfectly. A small residual cannot verify study eligibility or remove bias from the underlying studies.
This tool returns fixed common-effect estimates, covariance and residuals for three to eight treatments and at most one hundred rows. It supplies no random-effects variance, rankings, publication-bias adjustment or treatment recommendation. Preserve the study-level inputs and examine sensitivity to defensible inclusion decisions before reporting a synthesis.
A few questions, answered
Why must the comparison network be connected?
Disconnected components have no identified relative treatment location. The weighted information matrix is singular, so the calculator rejects them rather than inventing a comparison.
Can I enter several comparisons from a three-arm trial?
No. They share participants and have correlated errors. This bounded interface assumes independent two-arm rows and does not estimate the necessary multi-arm covariance.
Does changing the reference change treatment differences?
No. It changes coefficient coordinates. Correct pairwise differences, standard errors and weighted residuals are invariant when only the reference is changed.
Does Q prove the network is consistent?
No. It summarizes weighted residual lack of fit under the common-effect model. Sparse data can have little power, and this implementation does not separate heterogeneity from inconsistency.