Why Multiple-Group Balance Needs Pairwise Checks
When an analysis compares two treatment groups, one contrast summarizes the balance of each covariate. With three or more groups, a single treated-versus-control comparison is not enough: a covariate may be well balanced for one pair but quite different for another. A useful diagnostic therefore examines each pair of groups, then summarizes the contrasts so that the largest discrepancies and their sources are visible.
These diagnostics describe the covariate distributions in the samples being compared, before and after a design step such as matching or weighting. They do not establish that treatment assignment is unconfounded, nor do they show that an estimated treatment effect is unbiased. Their purpose is narrower: to reveal how similar the measured covariates are across the treatment groups relevant to the analysis.
Choosing and Interpreting Pairwise Summaries
A common reference scale makes the pairwise mean differences comparable across treatment-group contrasts. For example, using the original eligible sample’s standard deviation for every contrast avoids allowing a small post-match group variance to inflate a standardized difference. The scale must be fixed and reported: changing it changes the numerical standardized differences. If groups have weights, \(\bar{x}_{gj}\) can be the weighted mean, \(\sum_{i:A_i=g}w_i x_{ij}/\sum_{i:A_i=g}w_i\), with the same target population and weighting definition used consistently for each group.
The sign of \(d_{gh,j}\) records direction: a positive value means the mean in group \(g\) exceeds the mean in group \(h\). Its absolute value describes the discrepancy relative to the reference standard deviation. For a binary covariate, a common standardization uses the reference prevalence \(p_{j,0}\), giving a reference standard deviation \(\sqrt{p_{j,0}(1-p_{j,0})}\). This requires \(0<p_{j,0}<1\); if the covariate is constant in the reference sample, the scale is zero and the standardized contrast is undefined. The raw difference in proportions remains reportable, but it should not be called a standardized difference under this formula.
For each covariate, the maximum absolute pairwise difference is a compact summary of its worst contrast. Because all groups share the same positive scale,
Thus, the worst pair consists of a group with the largest mean and a group with the smallest mean. The identity of that pair matters: a maximum alone gives magnitude, but not which groups should be inspected. For a categorical covariate with several levels, calculate balance for each level’s indicator and examine the pairwise discrepancies; the indicators are related, so they should not be treated as independent pieces of evidence.
Worked Example: Finding the Largest Mean Contrast
Suppose three hypothetical treatment groups have mean baseline age 50, 54, and 47 years, respectively, and the reference standard deviation in the original eligible sample is \(s_{j,0}=10\) years. Label the groups A, B, and C. The common reference scale is positive, so the standardized differences are defined.
For A versus B, \(d_{AB,j}=(50-54)/10=-0.400\). For A versus C, \(d_{AC,j}=(50-47)/10=0.300\). For B versus C, \(d_{BC,j}=(54-47)/10=0.700\). The largest absolute contrast is B versus C, at 0.700 reference standard deviations; group B’s mean age is higher. Equivalently, the range of means is \(54-47=7\) years, and \(7/10=0.700\). These numbers describe balance in the hypothetical sample, not a treatment effect.
A summary across covariates can similarly report the largest absolute pairwise standardized difference for each covariate, together with its group pair. If a single overall maximum is reported, state that it is the maximum over the specified covariates and contrasts. Such a maximum is transparent but can hide whether several discrepancies are moderate or one is unusually large. An unlabelled average or composite score can hide the identity of problematic covariates and may give arbitrary importance to one coding or scaling choice; it should not replace the pairwise results.
Worked Example: A Binary Covariate Across Three Groups
In a hypothetical analysis, the proportions with a baseline risk factor are 0.20 in group A, 0.35 in group B, and 0.10 in group C. The reference prevalence in the original eligible sample is \(p_{j,0}=0.25\), so the reference standard deviation is \(\sqrt{0.25(1-0.25)}=\sqrt{0.1875}=0.4330\). It is positive, and the group proportions represent the same binary definition.
The signed standardized differences are \(d_{AB,j}=(0.20-0.35)/0.4330=-0.346\), \(d_{AC,j}=(0.20-0.10)/0.4330=0.231\), and \(d_{BC,j}=(0.35-0.10)/0.4330=0.577\). The largest absolute discrepancy is between B and C: their risk-factor prevalences differ by 0.25, or 25 percentage points, corresponding to 0.577 reference standard deviations. Reporting the raw difference as well as the standardized one keeps the contrast interpretable in prevalence units.
Distributional Checks Beyond Means
Matching means does not imply matching distributions. Pairwise balance assessment should therefore extend to distributional summaries appropriate to the covariate: variance ratios, quantiles, empirical distribution plots, or other diagnostics suited to the data. Each compares two groups at a time, and the same set of group pairs should be considered. Quantile comparisons can reveal differences in spread or tails; empirical distribution comparisons can reveal differences throughout the range. A single average standardized difference cannot capture all of these features.
For a quantitative covariate, one may compute a pairwise variance ratio \(s^2_{gj}/s^2_{hj}\), provided the denominator is positive, and inspect quantile or empirical distribution comparisons. Ratios depend on which group is in the denominator, so report the ordering or use a symmetric presentation such as the larger variance divided by the smaller when the goal is only to summarize relative spread. For categorical covariates, compare level-specific proportions across every pair. Sparse levels deserve special care: their proportions can change substantially with only a few observations, and a standardization scale can be small even when it is not exactly zero.
Worked Example: Equal Means Can Hide Distributional Imbalance
Consider hypothetical post-adjustment values for a continuous baseline covariate. Group A has \(0,0,0,10\), and group B has \(2,2,2,4\). Both means equal 2.5, so their mean difference and standardized mean difference are zero for any positive reference scale. But their sample variances differ.
For A, the sum of squared deviations from 2.5 is \(3(0-2.5)^2+(10-2.5)^2=3(6.25)+56.25=75\). Its sample variance is \(75/(4-1)=25\). For B, the corresponding sum is \(3(2-2.5)^2+(4-2.5)^2=3(0.25)+2.25=3\), giving sample variance \(3/3=1\). The A-to-B variance ratio is \(25/1=25\). Thus a mean-only check would miss a substantial spread and tail difference.
For additional context, suppose group C has values \(1,1,3,5\). Its mean is also 2.5, and its sample variance is \([2(1-2.5)^2+(3-2.5)^2+(5-2.5)^2]/3=11/3=3.667\). The A-to-C variance ratio is \(25/(11/3)=6.818\), and the B-to-C ratio is \(1/(11/3)=0.2727\). These contrasts show that all three means agree while the group distributions do not. A variance check, quantiles, and empirical distribution comparisons would give complementary information.
A Practical Pairwise Workflow
The logic of pairwise diagnostics is straightforward, but the comparisons are only meaningful when their definitions are consistent. Use the same covariate coding and measurement units across groups, define the sample or weighted target being assessed, and calculate reference scales once according to the stated rule. If a covariate has zero reference variation, report its constancy and do not produce an undefined standardized difference. For missing covariates, apply the chosen missing-data handling consistently before comparing groups; changing which observations contribute across contrasts can make the results difficult to compare.
State the treatment categories and the sample or weighted population whose balance is being checked. Confirm that each covariate has the same definition in every group.
Choose and report a common reference standard deviation for each continuous covariate, or a reference prevalence-based scale for a binary covariate. Check that each scale is positive before standardizing.
For each of the \(K(K-1)/2\) pairs, report signed mean or proportion differences and standardized differences where defined. Add distributional comparisons rather than relying only on means.
For each covariate, identify its largest absolute pairwise discrepancy and name the groups involved. Inspect whether several covariates point to the same problematic contrast and whether distributional diagnostics tell a different story.
The maximum-range identity gives a short justification for one useful summary. Let \(a_g=\bar{x}_{gj}\), and let the largest and smallest group means be \(a_{\max}\) and \(a_{\min}\). For any pair, \(|a_g-a_h|\leq a_{\max}-a_{\min}\), because neither value lies outside that range. The pair attaining the maximum and minimum has difference exactly \(a_{\max}-a_{\min}\). Therefore the largest absolute pairwise mean difference equals the range; dividing by a common positive \(s_{j,0}\) gives the maximum absolute standardized difference. This result is specific to a scalar summary and does not create a complete measure of multivariate balance.
Diagnostics, Alternatives, and Limitations
A pairwise table or plot should make the treatment-group labels, reference scales, and sample sizes visible. With many groups, the number of contrasts grows quadratically, so a matrix or heat map can help reveal patterns; it should still preserve enough information to identify the covariate and pair behind an extreme value. A Love plot can display pairwise standardized differences, but with multiple groups the plot should distinguish contrasts clearly rather than collapse them into one treated-versus-control series.
Pairwise summaries answer a different question from a single pooled comparison. A pooled summary can conceal a group that differs from all others, or opposing differences that average out. Pairwise comparisons expose those patterns but can become numerous and visually crowded. Joint multivariate diagnostics address whether groups differ across covariates together, while pairwise covariate diagnostics localize which measured features and group contrasts appear problematic. These approaches are complementary, not interchangeable.
Balance diagnostics are descriptive and do not by themselves certify a design as adequate. A small standardized mean difference cannot rule out nonlinear, tail, interaction, or unmeasured-covariate imbalance. Conversely, a large contrast can be driven by sparse data or a covariate with unusual support, requiring contextual inspection rather than automatic deletion. The diagnostic is also sensitive to the chosen reference scale, so the scale must be stated and applied consistently. Assessment should focus on substantive covariates and the intended comparison, not on a mechanical threshold alone.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions below.
- With four treatment groups, how many distinct pairwise contrasts are there?
- Three group means for a covariate are 12, 15, and 9, with a common positive reference standard deviation of 6. What is the largest absolute standardized difference, and which groups form it?
- A binary covariate has reference prevalence zero. Can its standardized difference be calculated with the prevalence-based scale? What can still be reported?
- Two groups have equal covariate means but very different variances. What does this imply about relying only on standardized mean differences?
Solutions. (1) There are \(4(4-1)/2=6\) distinct pairs. (2) The largest mean range is \(15-9=6\), so the maximum absolute standardized difference is \(6/6=1.00\), for the groups with means 15 and 9. (3) No. The scale is \(\sqrt{0(1-0)}=0\), so the standardized difference is undefined. Report the raw difference in proportions and note that the covariate is constant in the reference sample. (4) Equal means produce a zero mean difference, but do not establish distributional balance; inspect spread and other distributional features, such as variances and quantiles.