Outcome Regression Estimator — Se Yoon Lee, Ph.D.

Explore outcome regression standardization in a realistic observational smoking study. Fit a model for CVD risk, predict every subject under both smoking choices, average the two counterfactual prediction sets, and examine uncertainty, model misspecification, extrapolation, and repeated-sampling coverage.

Core operation: each subject keeps the same baseline covariates X. Only smoking status is changed from T=0 to T=1 inside the fitted outcome model.
SELF-CONTAINED • INLINE SVG • NO INTERNET

Mathematical formulation

Outcome regression is a plug-in g-computation estimator: estimate the conditional outcome surface, evaluate that surface twice for every subject, and integrate over the empirical target-population distribution of X.

Graduate-level notation
Outcome-regression estimation map
Fit  mˆ(t,x) {(mˆ(1,Xi), mˆ(0,Xi)) :i=1,,n} RDˆOR = 1n i=1n { mˆ(1,Xi) mˆ(0,Xi) }
1Fit the conditional mean
mt(x)E(Y|T=t,X=x)

Estimate this regression from the observed outcomes and treatment assignments.

2Predict both treatment worlds
mˆ1i=mˆ(1,Xi), mˆ0i=mˆ(0,Xi)

The same subject-specific covariate vector Xi appears in both predictions.

3Standardize and contrast
ψˆtOR =1n i=1n mˆ(t,Xi)

For the ATE risk difference, subtract the standardized mean under t=0 from that under t=1.

1. Subjects in the observational cohort

Color shows observed smoking status; point size shows fitted CVD risk under the treatment actually observed.

Smoker (T=1)Non-smoker (T=0)Had CVD (Y=1)larger point = higher fitted observed risk
Click any subject. Outcome regression will use that subject's same X twice—once with smoking set to 0 and once with smoking set to 1.

Selected subject

Observed data provide one treatment state; the fitted model supplies both conditional risk predictions.

2. Fitted outcome-risk curves with 95% bands

Solid curves are fitted logistic-regression predictions for a reference subject. Points summarize observed CVD risk in covariate bins.

Fitted T=0 Fitted T=1 True curvesshading = pointwise 95% model band

3. Target covariate distribution

Outcome regression does not rebalance the observed arms. It carries the full cohort's covariate distribution into both prediction worlds.

Full target cohortObserved smokersObserved non-smokers
The gray distribution—not either observed treatment arm—is the standardization target for both m̂(0,X) and m̂(1,X).

4. Two predictions for the same subjects

Each row is one actual subject. The filled point is the fitted risk in the observed treatment state; the open point is the model-based counterfactual prediction.

Move the reveal slider: at 0%, each subject appears only in the observed world. At 100%, every subject has both m̂0(Xi) and m̂1(Xi).
Prediction under T=0Prediction under T=1filled = observed state; open = counterfactual state
These are conditional risk predictions, not observed potential outcomes. Their causal interpretation requires measured confounding control, overlap, and a reasonable outcome model.

5. Standardize over the full cohort

Average all predicted risks in each treatment world.

Outcome-regression standardization:
ψˆtOR =1ni=1n mˆ(t,Xi) , RDˆOR =ψˆ1OR ψˆ0OR

6. Crude versus standardized estimates

The regression coefficient is conditional; the causal comparison shown here comes from marginalizing predicted risks over the target cohort.

7. Current cohort: 95% confidence intervals

Compare the crude estimate, the selected outcome model, and an alternative model specification as a sensitivity analysis.

Point estimateKnown true ATEgray dashed line = no effect
Intervals use a robust influence-function/delta-method variance that incorporates fitting the logistic outcome model and averaging over the empirical covariate distribution. A misspecified model can yield a narrow CI around the wrong target.

8. Repeated-sampling coverage experiment

Hold the baseline covariates fixed, regenerate smoking and CVD, refit the outcome model, and check whether each 95% CI contains the known conditional ATE.

No experiment run yet0%
Run the experiment to see long-run confidence-interval coverage under the selected outcome model.
Green intervals contain the truth; red intervals miss it. Correct specification can give approximately nominal coverage as sample size grows. Systematic model bias is not repaired by increasing the number of repetitions.
Inspect subject-level counterfactual predictions
SubjectAgeBMIIncomeFemaleCollegeHTNSmokerCVDm̂0(X)m̂1(X)Individual RDObserved fitted riskResidualOpposite-arm distance