Why Balance Needs More Than a Single Covariate Check
When an analysis adjusts for thousands of measured features, checking a few selected covariates cannot establish that adjustment behaved well across the feature space. A compact summary is needed, but no single number captures every relevant feature of balance. A useful assessment combines standardized mean differences across covariates, their overall distribution, the largest absolute imbalance, variance ratios for continuous features, and summaries that keep rare features visible.
These diagnostics compare the covariate distributions of the treatment groups before and after adjustment. Adjustment might use matching or weighting; in either case, calculate adjusted covariate summaries using the same matching or analysis weights used to define the adjusted groups. The diagnostics describe measured covariate balance. They do not show that unmeasured confounding is absent or establish that a causal effect is identified.
Calculating Comparable Standardized Mean Differences
For a continuous covariate \(X_j\), let \(\bar{x}_{1j}\) and \(\bar{x}_{0j}\) be the treatment- and comparison-group means before adjustment, and let \(s_{1j}\) and \(s_{0j}\) be their sample standard deviations. One common unadjusted SMD is
For a binary indicator, the group means are proportions. A common scale is based on the pooled prevalence \(\bar{p}_j=(\hat{p}_{1j}+\hat{p}_{0j})/2\):
When comparing before-adjustment and after-adjustment balance, use a fixed denominator for each covariate, ordinarily the before-adjustment scale. Otherwise, a change in the denominator can make the SMD appear to improve or worsen even when the difference in means changes little. For continuous covariates, calculate the before-adjustment pooled standard deviation once and divide both the before- and after-adjustment mean differences by it. For binary indicators, calculate the pooled prevalence scale once from the before-adjustment groups and use that same scale for both differences. The adjusted means or proportions may be weighted, but the reference scale stays fixed.
Using a fixed scale makes the comparison interpretable: an SMD of 0.10 means the adjusted groups differ by one tenth of the selected reference standard deviation, not one tenth of a newly changing post-adjustment scale. The sign indicates which group has the larger mean or prevalence; balance summaries generally examine the absolute value as well.
Worked Example: Continuous and Binary Covariates Before and After Adjustment
Suppose a hypothetical study compares treatment groups on age and a binary prior-smoking indicator. Before adjustment, the age means are 54 and 50 years, with standard deviations 12 and 10 years. After adjustment, the weighted means are 52.1 and 51.7 years. For smoking, the before-adjustment proportions are 0.30 and 0.20; after adjustment, the weighted proportions are 0.25 and 0.24.
Age. The before-adjustment reference standard deviation is
The before-adjustment SMD is \((54-50)/11.05=0.362\). Using that same denominator, the after-adjustment SMD is \((52.1-51.7)/11.05=0.0362\). The weighted group means are much closer after adjustment: their difference is 0.400 years, or 0.0362 of the reference standard deviation.
Smoking. The before-adjustment pooled prevalence is \((0.30+0.20)/2=0.25\), giving the fixed scale \(\sqrt{0.25(1-0.25)}=\sqrt{0.1875}=0.4330\). The before-adjustment SMD is \((0.30-0.20)/0.4330=0.231\). The after-adjustment SMD is \((0.25-0.24)/0.4330=0.0231\). These calculations show improved balance on both features; they do not establish balance on all covariates or rule out unmeasured confounding.
Summarizing Thousands of Features
With many covariates, report the distribution of absolute SMDs rather than a handful of examples. Useful summaries include the median, upper quantiles such as the 90th and 99th percentiles, the number and percentage exceeding prespecified thresholds, and the maximum absolute SMD. Present these summaries before and after adjustment so that both the overall change and any remaining extreme imbalance are visible.
The maximum is \(\max_j|\mathrm{SMD}_j|\): it identifies the single feature with the greatest measured mean difference on its reference scale. It is a useful warning signal, not a complete description. A small maximum can coexist with many modest imbalances, while a large maximum can be driven by one rare indicator whose estimate is unstable. Report it alongside the distribution and feature identity, not in place of them.
A threshold such as 0.10 is often used as a descriptive flag, not as a hypothesis test or a universal boundary between adequate and inadequate adjustment. The relevant threshold should be prespecified and interpreted in context. In a very large feature set, even a small fraction above a threshold can represent many covariates, so report both counts and percentages. Do not use p-values from thousands of separate balance tests as the main diagnostic: they depend strongly on sample size and create a multiple-testing problem rather than directly summarizing the magnitude of imbalance.
Worked Example: Reading the SMD Distribution and Its Maximum
Consider a hypothetical analysis with 1,000 encoded covariates. Before adjustment, the absolute SMD distribution has median 0.025, 90th percentile 0.090, and 99th percentile 0.240; 180 features exceed 0.10, 24 exceed 0.20, and the maximum is 0.61. After adjustment, the corresponding values are 0.012, 0.045, and 0.110; 21 features exceed 0.10, 2 exceed 0.20, and the maximum is 0.24.
The percentage above 0.10 falls from \(180/1000=0.180\), or 18.0%, to \(21/1000=0.0210\), or 2.10%. The percentage above 0.20 falls from 2.40% to 0.200%. Together with the lower quantiles, these results indicate that measured mean balance improved broadly. However, the maximum remains 0.24, so at least one feature deserves inspection. A report should identify it and show its before- and after-adjustment means or prevalences; the maximum alone cannot explain why it remains imbalanced.
These summaries do not justify saying that every feature is balanced after adjustment. They also do not imply that the residual differences are statistically significant or that a causal estimate is biased by a known amount. They are descriptive diagnostics of the measured features.
Variance Ratios and Prevalence-Aware Summaries
Similar means do not guarantee similar distributions. For a continuous covariate, define the variance ratio as the treatment-group variance divided by the comparison-group variance. Values near 1 indicate similar variances; values far from 1 flag differences in spread. For adjusted groups, use the corresponding weighted variances. A variance ratio does not detect every distributional difference: groups can have equal means and variances but differ in skewness, tails, or other features.
For a binary indicator with proportions \(p_1\) and \(p_0\), the corresponding Bernoulli variance ratio is \(p_1(1-p_1)/[p_0(1-p_0)]\), when the denominator is nonzero. This can be unstable or uninformative when a feature is rare or absent in one group. A zero estimated variance can make the ratio undefined or infinite; it is not evidence of excellent balance. Report the group prevalences and inspect rare indicators directly.
Prevalence-aware summaries prevent a large set of common features from hiding a small set of rare ones, or vice versa. One transparent approach is to divide binary features into prespecified prevalence strata using their pooled before-adjustment prevalence, then report the number of features and the distribution of absolute SMDs within each stratum. For example, strata might be defined as below 1%, 1% to below 5%, and at least 5%. The exact cut points are a reporting choice, not a statistical law; state them and keep them fixed for the before-and-after comparison.
It can also be useful to report a prevalence-weighted summary, but it answers a different question from the unweighted distribution. Weighting each feature by its pooled prevalence emphasizes features that occur more often; it can consequently downweight rare indicators with substantial imbalance. Do not present such a summary alone. Pair it with rare-feature counts, stratum-specific summaries, and the maximum. For multi-category covariates represented by indicator variables, report how levels were encoded and avoid treating the resulting collection as if each indicator captured the full distribution on its own.
Worked Example: A Rare Feature and a Variance-Ratio Warning
In a hypothetical dataset, a common binary feature has prevalence 0.30 in the treatment group and 0.25 in the comparison group. A rare feature has prevalence 0.010 and 0.002, respectively. Use the pooled before-adjustment prevalence to calculate each SMD scale.
Common feature. The pooled prevalence is \((0.30+0.25)/2=0.275\), so the scale is \(\sqrt{0.275(0.725)}=\sqrt{0.199375}=0.4465\). Its SMD is \((0.30-0.25)/0.4465=0.112\).
Rare feature. The pooled prevalence is \((0.010+0.002)/2=0.006\), so the scale is \(\sqrt{0.006(0.994)}=\sqrt{0.005964}=0.07723\). Its SMD is \((0.010-0.002)/0.07723=0.104\). The rare feature has a lower absolute SMD than the common feature, but its treatment-group prevalence is five times the comparison-group prevalence. Both the SMD and the raw prevalences are worth reporting; neither alone tells the whole story.
For the rare feature, the variance ratio is \([0.010(0.990)]/[0.002(0.998)]=0.00990/0.001996=4.96\). This large ratio flags a difference in Bernoulli variance, but it is based on very small prevalences and should not be read as a stable, precise measure. If the comparison-group prevalence were zero, the ratio would be undefined. In either case, display the group counts or prevalences and label the feature as rare rather than allowing the ratio to stand alone.
Why the Maximum Can Be Unstable
The maximum is sensitive to the number of features. If many features are examined, the chance that at least one has an unusually large observed imbalance can increase even when the underlying differences are generally small. A simple justification is the union bound: for any threshold \(c\),
Thus, as the number \(p\) of examined features grows, there are more opportunities for at least one feature to cross a threshold. The inequality does not require the features to be independent. It explains why the maximum should be interpreted together with the feature count, the full distribution, and prevalence information. It does not make the maximum useless: an extreme value can reveal a specific feature whose imbalance merits investigation.
Include the prespecified pre-treatment covariates used for adjustment, and state how continuous variables, binary indicators, and multi-category features are represented.
Calculate each continuous or binary feature's denominator from the before-adjustment groups, then use that same denominator for before-and-after SMDs.
Use adjusted group means, proportions, and variances under the analysis weights; report SMD distributions, threshold counts, maximum absolute SMD, and variance ratios.
Stratify features by prespecified prevalence, show rare-feature prevalences or counts, and identify the covariates driving large residual differences.
Diagnostics, Alternatives, and Limits
The SMD is a mean-based diagnostic. For continuous variables, it can miss differences in spread, skewness, tails, or multimodality; variance ratios add information about spread but still do not describe the whole distribution. When important distributional differences are plausible, inspect plots or compare additional summaries such as quantiles. For binary features, inspect raw prevalences and counts, especially when events are sparse. Confirm that before-and-after diagnostics refer to the same covariates, coding, and reference scales.
A common mistake is to recompute the standard deviation after adjustment and conclude that the SMD improved because its denominator changed. The correction is to hold the reference denominator fixed and compare the mean differences on that common scale. Another mistake is to regard every value below 0.10 as proof of adequate confounding control. That threshold is a heuristic for flagging measured mean differences; it cannot guarantee that all relevant confounders were measured, that the feature set was correctly specified, or that the causal assumptions hold.
The principal alternative to a high-dimensional summary is a covariate-by-covariate table or set of plots. Such displays make individual features easier to inspect but can be unwieldy for thousands of covariates. Aggregate summaries are compact but can conceal which variables drive the result. A useful report uses both: distributional summaries for the full feature set and a focused display of the most imbalanced features, including their prevalence or scale. Balance diagnostics complement the substantive design and causal assumptions; they do not replace them.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- Before adjustment, a continuous covariate has group standard deviations 8 and 6. After adjustment, the group means differ by 1.4 units. What fixed denominator and after-adjustment SMD should be used?
- Why should a maximum absolute SMD be reported alongside quantiles and threshold counts?
- A binary feature has prevalence 0.004 in one group and 0 in the other. What problem arises for its variance ratio, and what should be reported instead of relying on that ratio?
- Before adjustment, 60 of 500 features have \(|\mathrm{SMD}|>0.10\); after adjustment, 15 do. Give both percentages and one limitation of that comparison.
- Why is a prevalence-weighted average of absolute SMDs not a sufficient balance summary on its own?
Solutions. (1) The fixed denominator is \(\sqrt{(8^2+6^2)/2}=\sqrt{50}=7.071\). The after-adjustment SMD is \(1.4/7.071=0.198\). (2) The maximum identifies the most imbalanced feature, while quantiles and counts show whether imbalance is widespread; the maximum can be sensitive to the number of features and to rare indicators. (3) The comparison-group Bernoulli variance is zero, so the ratio has a zero denominator and is undefined. Report both group prevalences or counts, the feature's rarity, and its SMD with an explicitly stated reference scale. (4) Before adjustment, \(60/500=12.0\%\); after adjustment, \(15/500=3.00\%\). The reduction describes measured mean differences, but does not prove that all important covariates are balanced or that causal assumptions hold. (5) Prevalence weighting can give little weight to rare features, even when their relative imbalance is substantial. Pair it with prevalence-stratified summaries, rare-feature counts, and the maximum.