Why Inspect the Weights After Constructing Them?
Inverse-probability-of-censoring weighting aims to compensate for the loss of observed follow-up associated with measured covariates and history. A censoring model can produce a weight for every observed record, but the existence of those weights does not show that they work as intended. The weighted records might still have a different covariate distribution from the target population, or a small number of records might carry nearly all the weighted information.
This tutorial focuses on two related questions: does weighting improve balance on measured predictors of censoring and relevant prognostic factors? And are the resulting summaries dominated by a few observations? These are diagnostics, not proofs that censoring is conditionally independent or that an estimate is unbiased.
For a compact notation, let \(O_i(t)=1\) indicate that person \(i\)'s outcome is observed at time \(t\), and let \(w_i(t)\) be the applicable inverse-probability-of-censoring weight. For a baseline covariate \(X_i\), the weighted mean among records observed at \(t\) is
For an unstabilized weight \(w_i(t)=1/\widehat{G}_i(t)\), where \(\widehat{G}_i(t)\) is the estimated probability of remaining uncensored through \(t\) given the modeled history, this weighted mean is intended to represent the corresponding target mean under the censoring assumptions. Stabilized weights may target a different reference distribution because their numerator is not generally constant across covariate values. In that case, use a reference distribution consistent with the numerator rather than assuming the weighted mean must equal the unweighted baseline mean.
Assumptions Behind the Diagnostic
A balance check assesses how the fitted weights behave for measured variables; its interpretation rests on the same substantive conditions as the weighting procedure. The censoring model must represent the relevant predictors and history adequately, and the probability of remaining uncensored must be positive for histories in the target population. Conditional independent censoring requires that, given the modeled observed history, censoring does not carry further information about the event process relevant to the estimand. The covariates used in the comparison must also be measured and coded appropriately.
The target comparison must respect event-risk-set membership. For example, an event removes a person from a later event-free risk set for a reason other than censoring. Weighting for censoring does not reverse that event-related change. At a chosen time, compare like with like: define the target risk set and observed records using the event-history design, then diagnose whether censoring weighting addresses the selection from loss of observation within that setup.
A good balance result is not a test of conditional independent censoring. Balance on observed covariates cannot reveal imbalance in unmeasured predictors, and balance at a few selected times cannot guarantee balance at every time. Conversely, poor balance on a key measured predictor is a warning that the model, the weights, the reference distribution, or the data construction needs investigation.
How to Measure Balance
For a continuous covariate, a standardized mean difference (SMD) expresses the weighted-versus-target mean difference in units of a standard deviation. A common choice is to divide by the target-population standard deviation \(s_X\); state the choice and keep it consistent across comparisons. For a binary covariate, the target standard deviation is \(\sqrt{p(1-p)}\), where \(p\) is the target prevalence. SMDs are descriptive measures of discrepancy, not hypothesis tests; there is no universal threshold that establishes adequate balance.
Check more than a single mean. For continuous variables, compare distributions using quantiles, spread, and plots where appropriate; two distributions can have the same mean but differ in their tails or shape. For categorical variables, inspect each relevant level. Include variables used in the censoring model and important predictors of the event or estimand, along with meaningful nonlinear terms, categories, and time interactions. When covariate history changes over time, examine balance at multiple times or intervals rather than relying on baseline checks alone.
The following short justification explains why inverse weighting can recover a target mean in a simple setting. Suppose a baseline covariate \(X\) is observed for the full cohort, \(O\) indicates observation at a fixed time, and \(G(X)=P(O=1\mid X)\) is the true observation probability. Assume \(G(X)>0\) and that the observation model is correctly specified. Then
Taking expectations over \(X\) gives \(E[OX/G(X)]=E[X]\). In a finite sample, the normalized weighted mean estimates this target mean. In event-history data, the same reasoning must be applied to the relevant risk-set and time-specific observation process; the simple identity does not remove event-related selection or excuse a misspecified model.
Worked Example: Checking Binary-Covariate Balance
Consider a hypothetical cohort of 100 people with no events before a one-year landmark. At baseline, 40 have a risk factor (\(X=1\)) and 60 do not (\(X=0\)). At one year, 12 people with the risk factor and 48 without it remain observed. Suppose the fitted probabilities of remaining uncensored are 0.30 and 0.80, respectively. Assume for this example that these probabilities are correctly specified and positive.
The unstabilized weights are \(1/0.30=3.333\) for each observed person with the risk factor and \(1/0.80=1.25\) for each observed person without it. The weighted risk-factor count is \(12(3.333)=40.00\); the weighted count without the risk factor is \(48(1.25)=60.00\). Thus,
The cohort prevalence is \(40/100=0.4000\), so the weighted SMD is \((0.4000-0.4000)/\sqrt{0.4(0.6)}=0\). By contrast, the unweighted observed prevalence is \(12/(12+48)=0.2000\), with SMD \((0.2000-0.4000)/\sqrt{0.24}=-0.4082\). In this simplified setting, weighting restores balance on this measured variable. It does not show that other covariates are balanced or that the censoring assumption is true.
Extreme Weights and Concentrated Influence
Balance alone is insufficient. A weighted mean can match the target mean because a few records receive very large weights. A useful summary of concentration is the effective sample size (ESS):
ESS equals the number of records when all included weights are equal. It falls as weight variability increases; it is a measure of weight concentration, not a replacement for the actual sample size and not, by itself, a variance estimate. Also inspect the maximum weight, upper quantiles, and the share of total weight held by the largest observations. For a particular weighted estimate, leave-one-out changes or each record's contribution to the numerator and denominator can help reveal influence. Such checks are screening tools, not formal inference.
Worked Example: One Observation Dominates the Weights
In a hypothetical analysis at one time point, ten observed records have weights \(1,1,1,1,1,1,1,1,1,10\). Suppose the outcome values are zero for the first nine records and one for the last record. The weighted mean outcome is
The record with weight 10 carries \(10/19=0.5263\), or 52.63%, of the total weight. The ESS is \(19^2/(9(1^2)+10^2)=361/109=3.312\), far below the ten observed records. If the high-weight record is omitted, the weighted mean becomes zero. This large change shows that the estimate is highly sensitive to that record; it does not by itself determine whether the record is erroneous or whether the censoring model is wrong.
Truncation, Comparisons, and Failure Modes
Truncating or capping weights can reduce their maximum and increase ESS, but it changes the weighted pseudo-population and can reintroduce measured imbalance. Therefore, compare the same balance summaries, weight distribution, and estimate under the original and truncated weights. Do not choose a truncation rule solely because it makes an outcome estimate more appealing. The earlier material on Positivity Diagnostics for Censoring Weights addresses limited support; balance and influence checks complement, rather than replace, those diagnostics.
Weight diagnostics should also be distinguished from model diagnostics. A censoring model can predict who is censored well yet yield poor weighted balance, or have modest predictive discrimination while giving acceptable balance for variables relevant to the estimand. Calibration of predicted censoring probabilities and observed-versus-predicted censoring patterns can provide additional evidence about model fit. Neither predictive performance nor balance alone verifies the conditional independence assumption.
Worked Example: Truncation Improves ESS but Worsens Balance
In a hypothetical cohort of 32 people, 12 have a binary risk factor and 20 do not. At the diagnostic time, four risk-factor-positive people and all 20 risk-factor-negative people are observed. Suppose each observed positive person has weight 3 and each observed negative person has weight 1. These weights give weighted counts \(4(3)=12\) and \(20(1)=20\), matching the target counts. The weighted prevalence is \(12/32=0.3750\), equal to the cohort prevalence.
Now cap weights at 2.5. The positive weighted count becomes \(4(2.5)=10\), while the negative weighted count remains 20. The truncated weighted prevalence is \(10/30=0.3333\). With target standard deviation \(\sqrt{0.375(0.625)}=0.4841\), the truncated SMD is \((0.3333-0.3750)/0.4841=-0.0861\). The original SMD was zero.
For the original weights, ESS is \(32^2/[4(3^2)+20(1^2)]=1024/56=18.29\). After capping, ESS is \(30^2/[4(2.5^2)+20(1^2)]=900/45=20.00\). Thus the cap increases ESS but worsens balance on the risk factor. This is a trade-off to report and assess in context, not a reason to assume either weighting choice is automatically adequate.
Common warning signs include a covariate still imbalanced after weighting, a very large maximum weight, low ESS relative to the number of observed records, major changes when a single record is omitted, and large discrepancies between full and truncated analyses. Investigate coding, time alignment, missing histories, model functional form, and the chosen reference population. Avoid interpreting a small SMD as proof of no selection: balance is limited to the measured variables and summaries examined.
Specify the time, risk set, target population, and whether the weights are stabilized or truncated.
Compare weighted and target covariate means, proportions, and distributions, including key model and prognostic variables.
Report weight summaries and ESS, then examine whether a few records strongly affect the weighted summaries or estimate.
Check sensitivity to time points, model choices, and truncation without treating improved ESS as proof of improved validity.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- In the first worked example, what was the unweighted observed prevalence of the risk factor, and why did that comparison indicate imbalance?
- Why can a weighted SMD of zero fail to show that the censoring assumption is satisfied?
- For weights \(1,1,1,1\), calculate the ESS. What does it indicate?
- In the truncation example, why is the higher ESS not enough to conclude that the capped weights are preferable?
Solutions. (1) The unweighted observed prevalence was \(12/60=0.2000\), below the cohort prevalence of 0.4000; its SMD was \(-0.4082\). The observed records underrepresented people with the risk factor. (2) The SMD only describes balance on the measured variable at the checked time and under the chosen target definition. Unmeasured causes of censoring, model misspecification, or imbalance in unchecked variables can remain. (3) \(\operatorname{ESS}=4^2/(1+1+1+1)=16/4=4\), equal to the record count because all weights are equal. (4) Capping increased ESS from 18.29 to 20.00 but changed the risk-factor SMD from zero to \(-0.0861\). It trades reduced concentration for some loss of balance, so both features and the analysis context matter.