Tutorials › Model-Informed Drug Development (MIDD) › Covariate Balance Diagnostics After Transport Weighting

Model-Based Bridging and Extrapolation · Tutorial 442 of 596

Covariate Balance Diagnostics After Transport Weighting

Learn to interpret weighted balance diagnostics and identify when acceptable summaries mask limited support or unstable weights.

Advanced 12 min read

What You'll Learn

  • Calculate standardized mean differences using a stated, fixed reference standard deviation.
  • Assess binary and categorical covariate balance after weighting.
  • Use weighted distribution plots to detect differences hidden by similar averages.
  • Calculate effective sample size and interpret what it does and does not measure.
  • Recognize unsupported target values and why balance alone cannot establish transportability.

Why Check Balance After Transport Weighting?

Transport weighting changes how much each source-study participant contributes to summaries intended to describe a target population. A weighted analysis is more credible when the weighted source covariates resemble the target covariates, especially for variables that modify treatment effects or predict outcomes. Balance diagnostics assess that resemblance; they do not establish that the treatment effect is transportable or that the assumptions behind weighting hold.

A useful diagnostic set combines standardized differences, plots of distributions, and effective sample size (ESS). These answer different questions. Standardized differences summarize selected contrasts, plots show more of the distribution, and ESS indicates how concentrated the weights are. None is a substitute for checking whether target covariate values are represented in the source.

Definition: Let \(S\) denote the source study and \(T\) the target population. Let \(w_i\) be the transport weight for source participant \(i\), with \(w_i \geq 0\). For a covariate \(X\), the weighted source mean is \(\bar{X}_{S,w}=\sum_{i\in S} w_iX_i/\sum_{i\in S}w_i\). A balance diagnostic compares a weighted source summary with the corresponding target summary, using the same covariate definition and an explicitly stated reference scale.

The target summary may come from observed target-population data or from a representative target sample. If the target sample itself requires sampling weights, its summary must account for them. The examples below treat target summaries as known or correctly estimated, and use transport weights for the source participants.

Standardized Differences

A standardized mean difference (SMD) reports a mean difference in units of a chosen reference standard deviation. To make pre-weighting and post-weighting comparisons interpretable, choose and state the standardizer, and keep it fixed across those comparisons. Here, the continuous-covariate standardizer is the target-population standard deviation \(s_{T,X}\).

$$ \mathrm{SMD}_X = \frac{\bar{X}_{S,w}-\bar{X}_T}{s_{T,X}} $$

For a binary covariate represented by an indicator, use the target standard deviation of that indicator, \(\sqrt{p_T(1-p_T)}\). For a categorical covariate with several levels, compare each level's indicator proportion using its target standard deviation. A positive SMD means the weighted source summary is higher than the target summary; a negative SMD means it is lower. The SMD is not a percentage difference and does not have units of the original covariate.

For example, when a target proportion is 0.50, its indicator standard deviation is \(\sqrt{0.50(1-0.50)}=0.50\). A weighted-source proportion of 0.40 is 0.10 proportion points lower, which is \(0.10/0.50=0.20\) target standard deviations lower. The corresponding SMD, with weighted source minus target in the numerator, is \(-0.20\).

The standardizer matters. Some analyses use a pooled standard deviation or another prespecified reference scale. Those choices can be reasonable, but the definition must be explicit and consistent. SMDs are useful for comparing covariates measured in different units; they should not be read as tests of statistical significance. A threshold such as an absolute SMD below 0.1 is a common heuristic, not a universal guarantee of adequate balance.

Worked Example: Continuous and Binary Covariate Balance

Consider a hypothetical transport analysis. For a continuous covariate, the source mean is 35 before weighting and 43.5 after weighting; the target mean is 45. The target standard deviation, held fixed for both comparisons, is 12.91. For a binary covariate, the source proportion is 0.30 before weighting and 0.40 after weighting; the target proportion is 0.50.

Continuous covariate, before weighting. The SMD is \((35-45)/12.91=-10/12.91\approx-0.775\). The unweighted source mean is about 0.775 target standard deviations below the target mean.

Continuous covariate, after weighting. The SMD is \((43.5-45)/12.91=-1.5/12.91\approx-0.116\). Weighting moved the source mean closer to the target mean, although a residual difference remains.

Binary covariate, before weighting. The target standard deviation is \(\sqrt{0.50(1-0.50)}=0.50\). Thus, the SMD is \((0.30-0.50)/0.50=-0.40\).

Binary covariate, after weighting. The SMD is \((0.40-0.50)/0.50=-0.20\). The weighted source proportion is 0.10 proportion points, or 0.20 reference standard deviations, below the target proportion. Weighting improved this summary, but it did not make it identical to the target.

Plots Reveal More Than Mean Balance

A mean can match while the distributions differ substantially. For continuous covariates, compare weighted-source and target histograms or density plots, and weighted empirical cumulative distribution functions (ECDFs). Check central location, spread, skewness, tails, and gaps in support. For categorical variables, compare weighted-source and target proportions for every level, not just one selected contrast. When scientifically relevant, inspect important transformations, thresholds, and interactions as well as the original covariates.

Use comparable axes and scales so differences are visible. A plot with a large mass in one region can hide a small but clinically important tail; ECDFs and displays focused on the tail can help. Two-dimensional plots or cross-tabulations can reveal joint covariate patterns that separate one-variable-at-a-time checks miss. Plotting is diagnostic, not a formal proof that all relevant aspects of the distributions match.

Worked Example: Categorical Balance Across All Levels

Suppose a hypothetical categorical covariate has levels A, B, and C. The target proportions are 0.50, 0.30, and 0.20; the weighted-source proportions are 0.48, 0.32, and 0.20. The proportions sum to 1 in both populations.

For level A, the target indicator standard deviation is \(\sqrt{0.50(0.50)}=0.50\). Its SMD is \((0.48-0.50)/0.50=-0.040\).

For level B, the target indicator standard deviation is \(\sqrt{0.30(0.70)}=\sqrt{0.21}\approx0.4583\). Its SMD is \((0.32-0.30)/0.4583\approx0.0436\). Level C has identical proportions, so its SMD is 0.

These level-specific summaries show small differences in this example. A plot of the proportions makes the pattern easy to inspect: there is a two-percentage-point shift from A to B and no difference for C. A single overall mean for category codes would not be a meaningful substitute, because the numerical codes assigned to categories are arbitrary.

Effective Sample Size and Weight Concentration

The raw source sample size does not describe how much information remains when a few participants receive most of the total weight. A common weight-concentration summary is the Kish effective sample size. It is computed from the transport weights, not from the target sample size.

Definition: For \(n\) source participants with nonnegative weights \(w_i\), the effective sample size is \(n_{\mathrm{eff}}=(\sum_i w_i)^2/\sum_i w_i^2\). It is unchanged if all weights are multiplied by the same positive constant. With positive weights, it is no greater than \(n\), and equals \(n\) when all weights are equal.

One justification comes from the variance of a weighted mean. Write \(q_i=w_i/\sum_j w_j\), so the normalized weights sum to 1. If outcomes are independent with common variance \(\sigma^2\), the variance of their weighted mean is \(\sigma^2\sum_iq_i^2\). Equating this with the variance \(\sigma^2/n_{\mathrm{eff}}\) of an unweighted mean based on \(n_{\mathrm{eff}}\) equally weighted observations gives \(n_{\mathrm{eff}}=1/\sum_iq_i^2\), which is the stated formula. This is a useful concentration summary, not a literal count of independent participants for every outcome or model.

Worked Example: A Small Effective Sample Size and Missing Support

In a hypothetical analysis, source covariate values are 0, 2, 4, 6, and 8, with transport weights 1, 1, 1, 3, and 2. The target covariate values are 0, 4, 6, and 10. The target mean is \((0+4+6+10)/4=5\).

The weighted source mean is \((1(0)+1(2)+1(4)+3(6)+2(8))/(1+1+1+3+2)=40/8=5\). Thus, the means match exactly. But the target includes the value 10, which is outside the source's observed range.

The effective sample size is \((1+1+1+3+2)^2/(1^2+1^2+1^2+3^2+2^2)=8^2/16=4\). Although there are five source participants, this weight pattern has an ESS of 4 by this measure. The matching means do not repair the missing source support at 10; the target tail may depend on extrapolation beyond observed source values. A distribution plot would expose this limitation in a way the mean comparison does not.

How to Diagnose Problems and Choose Comparisons

1
Define the diagnostic set.
Include prespecified treatment-effect modifiers and other covariates relevant to the transport assumptions. Use consistent definitions and inspect transformations or interactions that matter scientifically.
2
Compare summaries.
Calculate pre-weighting and post-weighting SMDs using a declared, fixed reference scale. Examine every relevant categorical level.
3
Inspect distributions and support.
Compare weighted-source and target plots, including tails and important joint patterns. Look for target regions with few or no source observations.
4
Assess weight concentration.
Report ESS alongside weight summaries and plots. Investigate large or highly variable weights rather than treating ESS as a pass-or-fail test.

These diagnostics are complementary to common alternatives. A hypothesis test for differences can depend strongly on sample size: a small discrepancy may be statistically detectable in a large sample, while a practically important discrepancy may not be detected in a small one. SMDs describe magnitude on a reference scale without that same sample-size dependence, but compress each comparison to a summary. Distribution plots retain information about shape and support, but require judgment and can be hard to compare if axes or bins differ. ESS summarizes weight concentration, but does not identify which covariates are imbalanced or where support is absent.

If diagnostics are concerning, possible responses include revisiting the weighting specification, using a different weighting or design strategy, or narrowing the target population to a region with adequate support. Each changes the analysis or its target and requires justification. Trimming extreme weights may reduce variance but can introduce bias or change the effective target; it does not create observations in unsupported regions. No adjustment should be presented as solving a positivity problem without examining what population is then represented.

Common Mistake and Limitations

Wrong reasoning: “The weighted means match and all reported SMDs are below 0.1, so the populations are balanced and transport is justified.” This conclusion overstates what the summaries establish. They cover only the covariates and contrasts examined; they can miss distributional differences, interactions, sparse regions, or a target tail absent from the source. Balance on measured covariates also cannot verify unmeasured assumptions or demonstrate that effects are exchangeable across populations.

Correction: Treat SMDs as one part of a diagnostic assessment. State the standardizer and examine the full distributions and support, weight concentration, and scientifically important joint patterns. Report remaining discrepancies and limitations. In particular, acceptable average balance does not establish overlap: weighting can match a mean by emphasizing observed source values while leaving target values unsupported.

A further limitation is that estimated target summaries and estimated weights have uncertainty. Simple balance summaries are descriptive and do not automatically account for that uncertainty. They also cannot tell whether a small residual imbalance is consequential for a particular treatment effect. Interpretation must return to the target population, the estimand, and the covariates needed for the transport argument.

Check Your Understanding

Answer each question, then compare with the solutions.

  1. A weighted-source mean is 18, the target mean is 20, and the fixed target standard deviation is 4. Calculate and interpret the SMD.
  2. A binary covariate has target proportion 0.40 and weighted-source proportion 0.35. Calculate the SMD using the target indicator standard deviation.
  3. Three participants have weights 1, 1, and 4. Calculate the ESS and explain what it indicates.
  4. Why can matching weighted and target means fail to establish adequate support?

Solutions. 1. The SMD is \((18-20)/4=-0.50\); the weighted-source mean is half a target standard deviation below the target mean. 2. The target standard deviation is \(\sqrt{0.40(0.60)}=\sqrt{0.24}\approx0.4899\), so the SMD is \((0.35-0.40)/0.4899\approx-0.102\). The weighted-source proportion is about 0.102 target standard deviations lower. 3. The ESS is \((1+1+4)^2/(1+1+16)=36/18=2\). The unequal weights concentrate contributions enough that the Kish ESS is 2, rather than the raw count of 3; it is a concentration summary, not a universal independent sample count. 4. Different distributions can share the same mean. If target values occur outside the source's observed range, weighting observed source participants cannot supply those values, even when the weighted mean matches.