Why Combine Outcome Regression and Weighting?
When allocation probabilities change during enrollment, the treatment and control groups can contain different proportions of early and late participants. If prognosis changes over calendar time, a raw difference in arm averages can then mix treatment effects with differences in enrollment timing. Earlier material on time-stratified standardization and inverse-probability weighting provides two ways to address this problem. This tutorial shows how they relate and how to combine them.
The goal is to compare treatment and control outcomes for a common distribution of enrollment times, rather than to compare the time distributions that happened to occur in the two arms. The choice of that common distribution is part of the estimand: a natural target is the distribution of enrollment times among all participants in the analyzed trial cohort.
For the formulas below, write \(p_i=P(A_i=1\mid W_i)\) for the known probability of treatment assignment at participant \(i\)'s randomization. In an adaptive trial, this probability can change over enrollment. The information \(W_i\) must be sufficient for the conditional randomization statement being used; if the assignment probability depends on recorded pre-assignment history beyond calendar time, that history belongs in the conditioning information. In a simple time-only illustration, \(W_i\) is just the enrollment period.
The key assumptions are consistency (the observed outcome is \(Y_i(A_i)\)), no interference between participants, and sequential randomization: conditional on the recorded pre-assignment information, current assignment is independent of the participant's potential outcomes. Also, \(0<p_i<1\) for the target participants, so each has a nonzero chance of either assignment. These conditions support identification; they do not ensure that a chosen outcome model is adequate or that a finite-sample estimate is precise.
Three Ways to Target the Same Temporal Distribution
Outcome-regression standardization estimates the conditional mean outcome under each assignment, then averages predicted contrasts over the target covariate or time distribution. If \(\hat m_a(W_i)\) is a fitted outcome model, the empirical estimator is
This approach can be efficient when the outcome model captures relevant prognostic patterns, including temporal drift. A wrong functional form, omitted time pattern, or inadequately modeled treatment-by-time variation can distort the standardized contrast.
Inverse-probability weighting (IPW) uses each observed outcome with a weight inversely proportional to the probability of receiving its observed assignment. A simple Horvitz–Thompson estimator of the same target is
The factor \(1/p_i\) gives more representation to treated participants whose observed assignment was less likely; \(1/(1-p_i)\) does the analogous job for controls. Under the stated randomization assumptions, averaging over assignments recovers the target potential-outcome means. IPW does not require a correct outcome regression, but highly variable weights can make its estimate unstable.
A third approach adds weighted outcome residuals to the regression-standardized estimate. This is the augmented inverse-probability-weighted (AIPW) estimator:
The first part standardizes fitted outcomes. The residual terms correct the fitted means using observed outcomes, with assignment-probability weights. In a randomized adaptive trial, the allocation probabilities are ordinarily known by design; using the recorded probabilities is important, rather than reconstructing them from the realized arm counts.
Why the Augmentation Works
The double-robustness claim can be seen conditionally at a fixed \(W\). Let \(p=P(A=1\mid W)\), and write \(m_a(W)\) for the true conditional mean. Consider the AIPW expression using any fitted functions \(\tilde m_a(W)\) and a probability \(q(W)\). If \(q(W)=p\), then the conditional expectation of the treated residual contribution is \(m_1(W)-\tilde m_1(W)\); that of the subtracted control residual is \(-\{m_0(W)-\tilde m_0(W)\}\). Adding the regression contrast gives the true contrast:
Alternatively, if both outcome regressions are correct, the residuals have conditional mean zero within each assignment arm. Their weighted expectations are therefore zero when the denominators are valid, even if a fitted assignment probability \(q(W)\) is not the true probability. The fitted contrast alone then has the correct conditional expectation. Thus the estimator is consistent if either the assignment-probability model or the outcome regression is correct, subject to the identification assumptions and appropriate estimation conditions.
In response-adaptive randomization, this result should be interpreted carefully: the assignment probability is usually known, not an uncertain nuisance model. With correctly recorded probabilities, the AIPW estimator is protected against outcome-model misspecification in the expectation argument above. “Doubly robust” does not mean that the estimator is immune to incorrect recorded probabilities, lack of overlap, violations of randomization assumptions, or poor finite-sample behavior.
Worked Example: Standardizing Across Early and Late Enrollment
Consider hypothetical data with four participants enrolled early and four late. Early allocation probability was \(p=0.75\), and late allocation probability was \(p=0.25\). The outcomes are:
| Period | Assignment | Outcomes | Count |
|---|---|---|---|
| Early | Treatment | 10, 12, 8 | 3 |
| Early | Control | 9 | 1 |
| Late | Treatment | 14 | 1 |
| Late | Control | 12, 14, 16 | 3 |
The observed treatment mean is \(44/4=11\), and the control mean is \(51/4=12.75\), so the unadjusted difference is \(11-12.75=-1.75\) outcome units. This comparison reflects both treatment and the unequal distribution of early and late enrollment.
For cell-mean outcome regression, the early treatment mean is \((10+12+8)/3=10\), and the early control mean is \(9\), giving an early contrast of \(1\). The late means are \(14\) for treatment and \((12+14+16)/3=14\) for control, giving a late contrast of \(0\). The enrolled target has four of eight participants in each period, so
The standardized estimate is \(0.5\) outcome units, averaged equally over the early and late periods. This is a descriptive estimate from the hypothetical data, not evidence that the true treatment effect is positive.
Worked Example: Applying the Known Allocation Weights
Use the same hypothetical outcomes and probabilities. The treated weighted outcome total is \(30/0.75+14/0.25=40+56=96\). Dividing by all eight participants gives the Horvitz–Thompson estimate of the target treated mean, \(96/8=12\). For control, the weighted total is \(9/(1-0.75)+42/(1-0.25)=36+56=92\), giving \(92/8=11.5\). Therefore,
The calculation uses three early treated participants, with outcomes 10, 12, and 8, and one late treated participant, with outcome 14. In this particular realization, IPW and cell-mean standardization agree. They need not agree in every sample: the IPW calculation uses weighted observed outcomes, while regression standardization uses fitted conditional means.
Worked Example: Computing the Doubly Robust Estimate
For illustration, use the same cell means as the fitted outcome predictions: \(\hat m_1=10,\hat m_0=9\) early and \(\hat m_1=14,\hat m_0=14\) late. The average fitted contrast is \(0.5\), as above. The early treated residuals are \(0,2,-2\), so their weighted sum is \((0+2-2)/0.75=0\); the late treated residual is \(14-14=0\). The early control residual is \(9-9=0\). The late control residuals are \(-2,0,2\), so their weighted contribution to the subtracted control term is \(-(-2+0+2)/0.75=0\). Thus
Here the residual corrections sum to zero because the fitted cell means equal the observed cell means. In other data, the corrections can move the regression estimate toward or away from the observed outcomes, with their scale determined by the known assignment probabilities.
Diagnostics, Alternatives, and Limits
Diagnostics should check both the probability mechanism and the outcome model. Compare recorded probabilities with the trial's allocation rules and enrollment history; inspect treatment counts and outcome summaries by time period; and examine whether outcome residuals still show systematic temporal patterns. For IPW and AIPW, inspect the distribution of weights and identify participants whose weights dominate the estimate. A useful descriptive summary is the effective sample size within an arm, \((\sum_i w_i)^2/\sum_i w_i^2\), where \(w_i\) are that arm's positive weights. A much smaller effective sample size than the arm count signals that a few observations carry much of the weighted information.
Outcome regression and IPW have different vulnerabilities. Regression can extrapolate into periods or covariate profiles with little information in one arm, and its answer may depend on whether time was modeled flexibly enough. IPW relies less on outcome-model form but can be imprecise when probabilities are close to zero or one. AIPW combines fitted contrasts with residual correction; it often offers protection against one nuisance-model error, but it does not remove the need for overlap or reliable data. A direct time-stratified contrast is a transparent alternative when the periods are few and adequately represented. A raw arm comparison does not target the same temporal distribution when enrollment patterns differ.
These estimates also depend on the target distribution. Averaging over the enrolled cohort answers a different question from standardizing to a planned calendar-time distribution or to a specified external population. State the target explicitly. With a continuous time trend, the outcome model must represent that trend adequately; dividing time into too few categories can leave residual drift, while too many sparse periods can make cell estimates unstable. Finally, a point estimate alone does not establish the precision of the result: uncertainty calculations must respect the adaptive randomization design and the estimator used.
Common Mistake
Check Your Understanding
Answer each question, then compare with the brief solutions.
- What distribution is targeted by the empirical standardization formula when it averages predictions over all enrolled participants?
- Why does IPW give an early treated participant a weight of \(1/0.75\) in the hypothetical example?
- State the two model components whose correctness motivates the term “doubly robust.”
- If the outcome regression is correct but a fitted assignment probability is wrong, what residual property supports the AIPW argument?
- Name one diagnostic that could reveal unstable weighting and explain what it indicates.
Solutions. (1) It targets the empirical distribution of the enrolled participants' pre-assignment information, including their observed mix of enrollment times. (2) The early treatment assignment probability is \(0.75\), so the inverse probability for an observed treated outcome is \(1/0.75\); the weighting represents the probability of observing that participant in the treated arm. (3) The assignment-probability model and the outcome regressions for treatment and control. (4) Correct outcome regressions make each arm-specific residual have conditional mean zero, so the weighted residual corrections have expectation zero when their denominators are valid. (5) Inspecting the weight distribution or effective sample size can reveal that a few observations dominate, indicating potential instability and loss of effective information.