Causal Roadmap

DML with held-out predictions

How would five-year mortality change under short-course radiotherapy versus standard for all 5,000 patients in Susan’s synthetic cohort? Double machine learning uses predictions made on held-out patients and their observed outcomes to estimate the difference.

Partialling out frailty

What does “adjust for frailty” do in a regression?

Start with ordinary least squares. Within each frailty group, subtract the group’s short-course proportion from each patient’s schedule and its mortality rate from each patient’s outcome. Fit a line through the two sets of residuals. Its slope equals the schedule coefficient in a regression of mortality on schedule and frailty. This is the Frisch–Waugh–Lovell (FWL) theorem.

The partially linear DML estimate

Now fit the schedule and mortality models on the other folds. For every held-out patient, calculate V = schedule − predicted chance of short and U = outcome − predicted mortality given frailty alone. Pool the residuals and fit the slope.

Slope = sum of V × U divided by sum of V²

−43.65 ÷ 1,005 is approximately −0.04343

The partial slope is −4.34 percentage points. It matches the full-data line here because every fold has the same treatment shares within frailty groups. The exact FWL identity applies to ordinary least squares fitted on the same records.

Why does the cohort estimate above give −4.80 points? The lower- and higher-frailty differences are +2 and −15 points. The cohort average weights them by patient counts (60% and 40%). The partial slope weights each group by its size times e(1 − e), where e is its chance of short. That gives 62.69% and 37.31%. In a trial with the same randomization probability in both groups, the two population weightings coincide.

Read the FWL theorem

Teaching notes and sources

These 5,000 records are split into five folds balanced by frailty and schedule. Each training set supplies fresh risk and schedule predictions. Andy Wilson’s PBHLT 7115 lecture From Partialling Out to Orthogonal Learning pairs out-of-sample prediction with an orthogonal score. The residual plot adapts its FWL exercise to Susan’s cohort.

A causal interpretation requires comparable groups given frailty, a chance of either schedule in each group, well-defined schedules and complete follow-up. See the counts and assumptions.