Skip to the roadmap
Causal roadmap
The roadmapTest your reasoningBring your own question

An illustrated introduction to causal research

What would help
these patients?

Research starts with something we want to know. If a different treatment might change what happens, the question has a causal interpretation. How do we get from the data we can observe to the answer we need?

Start with Susan’s question
A clinician and a surveyor consider a group of clay patients at a drafting table, with a balance and a map of possible paths.
A clinical question brings us to the table. The roadmap helps us build the argument.From the survival companion’s illustration collection

Start here if you read or plan clinical studies. Follow a fictional researcher from a treatment question to a conclusion she can defend. The main path uses plain language; expandable notes, a glossary and simulations let you go deeper. No coding is needed.

Our ambition is to render a causal verdict.

State what we can conclude, for whom, under which assumptions, and what evidence would change the answer. The purpose is better treatment for each group of patients and, as far as the evidence allows, for each patient. A randomized controlled trial (RCT) and an analysis of real-world data are both ambitious routes toward that goal.

Companion to Causal Analysis for Survival Trajectories (CAST) by Andy Wilson, Aimee Harrison and Igor Shuryak. The running example compares hypofractionated with conventionally fractionated radiotherapy. The illustrations are conceptual and the simulations use synthetic data.

Meet Susan · a fictional researcher

The records show a difference.
Did the treatment make it?

Susan studies people starting radiotherapy. A shorter course means fewer visits, but would choosing it change survival? Her electronic health records show different outcomes under the two schedules. They also show that clinicians chose the schedules for different kinds of patients.

Some of those differences are recorded, such as age and disease stage. Others, including how well a patient could manage daily activities before treatment, may be missing. Susan needs to understand what drove the choice before she can interpret the survival gap.

The causal roadmap

Build the argument, one component at a time.

Start with the trial that would answer your question, then follow the causal roadmap from assumptions to interpretation. Dang and Balzer (2023) explain why a target-trial protocol is a starting point, and why identification needs its own argument.

  1. State the questionWrite the target-trial protocol.
  2. Specify a causal modelName the causes and the causal effect.
  3. Examine the dataWhat is observed, and what is missing?
  4. Assess identificationCan assumptions connect data to effect?
  5. Define the statistical targetWhat quantity in the data will answer it?
  6. Estimate with uncertaintyChoose methods for that target.
  7. Challenge and interpretTest sensitivity; state scope and limits.
A simplified reading of Dang and Balzer (2023), Start with the Target Trial Protocol, Then Follow the Roadmap for Causal Inference. If support is inadequate, revise the question, assumptions or data before proceeding.

An experiment in gamifying the roadmap

Can we make the assumptions something to play with?

Give each component 0–10 Bleile dings for the gaps that remain. Explore how recovering information, improving the design or making an assumption changes the argument.

Try Susan’s fictional study, then visit its checkpoints. The profile keeps confounding and positivity distinct even when their dings add to the same total.

Starting study

60Bleile dings / 100

Lower means fewer dings in this rubric. The profile tells us where the argument needs work. This total is a teaching device, not a probability that the result is causal.

Start with a fictional observational study of radiotherapy and five-year survival.

Explore the ends of the scale

Zero stipulates an ideal in every component. Randomization alone does not earn it. At 80+, the present question is beyond what the current evidence supports. It may become answerable with a different design, more information or a narrower target.

Where the dings come from

The outline is 100 dings. Each wedge contributes its component’s share of the shaded area. Equal totals have equal areas; their shapes can differ. Select a point to edit it.
How to read the area and scale

The full star represents 100 dings. A total of 60 fills 60% of that area, and moving to 50 removes one-sixth of the shading. Each wedge is sized independently, so a component contributes the same area regardless of its neighbors.

The rings mark 2, 5 and 10 dings on each axis. Distances use a square-root scale so that area adds up to the total. Read the labels for the component values. An ordinary connected radar polygon would not have this property.

Inspect all ten component scores and their basis

● Evidence or design   ◇ Assumption to challenge   ? Unresolved

The current causal verdict

Treatment choice is still entangled with health

Confounding 10 / 10Positivity 8 / 10

Carry this into the final interpretation ↓

What changes between 60 and 50?

Recovering pretreatment performance status makes the confounding argument more credible. Validation improves the measurement argument. A bias analysis clarifies the remaining uncertainty. The ten removed dings are an illustrative judgment about these changes, not an effect calculated from a dataset.

Positivity stays at 8. For some patients, only one treatment is observed. Measuring their health more accurately does not supply the missing comparison. A claim about patients with both options requires a newly stated target and a reassessment of its assumptions.

Why the dings do not exchange one for one

Five confounding dings cannot pay off five positivity dings. The total is many-to-one: different profiles can have the same sum. A single serious gap can limit the claim even when everything else scores well. The verdict therefore reads the components as well as the total.

The checklist includes identification assumptions and the design, measurement, analysis and applicability decisions around them. Identification is the umbrella question, so it gets no extra score on top of confounding, positivity and the other relevant assumptions. Better predictive fit cannot erase those gaps. Sensitivity points describe how well the argument has been challenged, not whether the underlying assumption has become true.

Within a fixed question and rubric, fewer dings usually signal a stronger argument. Changing the population, finding a previously hidden problem, or making an unsupported assumption can break that relationship. Scores are neither strictly monotonic nor transferable between studies. Moving a slider records a judgment: use the basis selector to distinguish evidence from an assumption still to challenge.

Record the argument before analysis, then revisit it

Before seeing the effect estimate, record the question, the component judgments and their basis. After analysis, revisit what the diagnostics and sensitivity checks revealed. A newly discovered problem can add dings. A favorable result alone cannot remove them.

Try it: select Start at 60, record that profile below, then select Recover information: 50. The earlier judgment stays fixed while you inspect the revision.

The record lasts for this visit. Download it to keep your comparison and explanation; profile links share only the current scores and basis.

Checkpoint labels use three provisional concern bands: 0–3, fewer dings; 4–7, some concern; 8–10, high concern. The star’s colors identify components, with confounding in blue and positivity in rust. Neither the bands nor the total establish identification.

Where the roadmap comes from

Background

Where these ideas come from

Modern causal inference grew from three strands that are now used together: potential outcomes (what would happen to the same patient under each treatment), causal diagrams (what causes what), and estimation methods that let machine learning do the modeling without breaking the statistics.

A short timeline
  • 1923. Neyman applied counterfactual (potential) outcomes to the estimation of causal effects in randomized experiments.1
  • 1974 to 1983. Rubin extended Neyman's framework to observational studies.1 Rosenbaum and Rubin defined the propensity score, the probability of treatment given baseline covariates.2
  • 1986. Robins generalized the framework to treatments that change over time and introduced the g-formula, the root of the g-methods used for treatment policies (section 6).1
  • 1988 to 2009. Pearl formalized causal diagrams: d-separation, and the backdoor criterion that tells you which variables to adjust for (section 3).1 Later, Bareinboim and Pearl worked on fusing data from different populations and designs, including transporting results from one population to another.3
  • 2000s to 2010s. Van der Laan and colleagues developed targeted learning, including targeted maximum likelihood estimation, and with Petersen described the causal roadmap this page follows.4
  • 2016. Hernán and Robins described target trial emulation: write the randomized trial you would run, then make the observational analysis follow its protocol.5
  • 2018. Chernozhukov and colleagues introduced double/debiased machine learning,6 and Wager and Athey introduced causal forests for treatment effects that vary between patients.7
Some of the people behind these ideas, with links

A short list of researchers whose work this page draws on. It is not exhaustive: many others shaped the field.

  • Judea Pearl (UCLA): causal diagrams and the do-calculus.
  • Donald Rubin (Harvard, emeritus, and Temple): potential outcomes for observational studies, propensity scores.
  • James Robins (Harvard): g-methods for treatments that change over time.
  • Miguel Hernán (Harvard): target trial emulation, and the free book Causal Inference: What If with Robins.
  • Mark van der Laan (Berkeley): targeted learning and super learning.
  • Elias Bareinboim (Columbia): causal artificial intelligence, data fusion and transportability.
  • Victor Chernozhukov (MIT): double/debiased machine learning.
  • Susan Athey and Stefan Wager (Stanford): causal forests and machine learning for treatment effects.

0 · Before anything else

Three questions that look alike

The same registry can answer three different kinds of question: description, prediction, and cause and effect. Each needs different tools.8

The core difference

A causal effect compares two outcomes for the same patients: one under hypofractionation and one under conventional fractionation. Each patient shows us only one of them. No cohort size and no better learner can fill in the other, so ordinary prediction accuracy cannot confirm a causal effect. A causal analysis is built on a design and on stated assumptions, and then challenged from several directions.

The three kinds of question, side by side
Kind of questionExample on hypofractionationTypical toolsHow you check the answer
DescriptionHow did the share of hypofractionated courses change between 2010 and 2022, by age group?Counts, proportions, Kaplan-Meier curves by groupCheck the counts against the source
PredictionWhich patients starting radiotherapy will die within 3 years?Cox regression, random survival forest, XGBoost, neural networksHeld-out data: concordance index (C-index), calibration. The outcome is eventually observed for patients followed long enough, so the prediction can be scored, with censoring handled.
Cause and effectWould patients aged 75 or older live longer, on average, if they all received hypofractionation instead of conventional fractionation?Target trial emulation plus a causal estimator (this page)The outcome under the schedule a patient did not receive is never observed, so prediction accuracy cannot confirm the effect. Causal checks exist (section 8), but each rests on assumptions.
Why a prediction model is not a causal answer

Prediction models are useful, and nothing on this page argues against them. The problem starts when a prediction model is asked a cause-and-effect question. A survival model with fractionation as one of its inputs will give fractionation a coefficient, a hazard ratio or a SHapley Additive exPlanations (SHAP) value. That number describes the model. It is the effect of hypofractionation only under conditions that the model never checks: the right variables adjusted for, none adjusted for that should not be, and comparable patients in both groups. Section 7 shows three simulated cases where the model that predicts better reports the wrong effect.

If the assumptions are uncertain, why think causally at all?

Why not use a familiar prediction pipeline? Susan could predict survival well using the treatment patients received and information about their health. To ask what would happen if she changed their treatment, she also needs an argument about treatment choice. The roadmap exposes that argument and its weak points. Calling an estimator “causal” does not make its assumptions true.8

Could a large language model learn the answer from enough data? It might bring relevant scientific knowledge or experimental results into the discussion. But equally good fits to observational records can be compatible with different intervention effects. More of the same records cannot, by itself, choose between those explanations. Ask which design, evidence and assumptions support this answer. A DAG is one way to make them inspectable; it is not proof that they are correct.9 Pearl and Bareinboim’s inference engine makes those inputs explicit.

Would it be safer to report only an association? That is appropriate when description or prediction is the goal. If the reader will use the result to choose a treatment, the intervention question remains. Susan can state her causal target, explain what the evidence supports, and say where it falls short. An honest conclusion may be that this dataset cannot yet answer her question.

What about finding benefits hidden by an average near zero? Different subgroup effects are possible. Finding them reliably requires enough information and a plan for checking the discovery. See what a subgroup estimate does and does not establish.

Pearl's ladder: seeing, doing, imagining

Judea Pearl sorts causal questions into three levels. A question on one level can be answered only with information from that level or a higher one.9

LevelActivityThe question on hypofractionation
1. AssociationSeeingDid patients who received hypofractionation live longer in our registry?9
2. InterventionDoingIf all patients aged 75 or older received hypofractionation, how would their survival change?9
3. CounterfactualsImaginingFor this patient, who was treated conventionally, how long would they have lived with hypofractionation?9

Questions about interventions cannot be answered from statistical data alone. They can be answered from randomized trials, or by analysis that adds a causal model to the data,9 which is what the roadmap on this page does. Pearl places association-based machine learning, which learns only from patterns in the data, on the first level. A learner used inside a causal design works with causal assumptions as well, which is what the roadmap supplies. A treatment decision is a question on the second. The third holds individual counterfactuals, which no experiment can observe directly: nobody can re-run a trial on the same patients without the treatment they received.9

Not only for registry data

Causal machine learning is often presented as a way to analyze registry data, and most of this page uses registry data. The same methods also work on RCT data, with different assumptions: randomization settles confounding of the assigned treatment, and the methods then add precision, show who benefits, and carry trial results to other patients. Section 9 explains what they add there.

Try it: which kind of question is this?

    1 · The question and the data

    Start with the clinical question, then find data that can answer it

    The causal roadmap is a sequence of steps from a scientific question to an estimate and its interpretation.4,10 The first step is to write the question so precisely that two people would compute the same number from it: the population, the strategies compared, the outcome, the time horizon and the scale.

    A sketched cohort at a fork, with the same patients imagined under two alternative treatment strategies.
    We want to compare two possible treatment worlds for the same population. The data reveal only the world each patient actually experienced.
    The five elements, for the running example

    A vague version is “Is hypofractionation better?”. A precise version names five things:

    ElementRunning example
    PopulationAdults starting curative-intent radiotherapy for a given tumor site, for whom both schedules are clinically reasonable
    Strategies comparedModerate hypofractionation versus conventional fractionation (about 1.8 to 2 Gy per fraction), each fully specified at the start: total dose, dose per fraction, number of fractions, and any concurrent therapy. In a real protocol these are filled in for the tumor site. Two analysts must not be able to read the same words as two different treatments.
    OutcomeDeath from any cause
    Time horizon5 years from the first fraction
    ScaleDifference in restricted mean survival time (RMST) at 5 years, in months, plus the differences in 2- and 5-year survival probability
    Why ask this with observational data at all?

    For some tumor sites, randomized trials have already compared the two approaches. In prostate cancer, for example, the CHHiP trial found 60 Gy in 20 fractions noninferior to 74 Gy in 37 fractions for its primary endpoint, biochemical or clinical failure.11 Trials enroll selected patients, though. Registries and institutional records include older and frailer patients, other tumor sites, and later years. Consequently, a well-designed observational analysis can ask whether a trial result carries over to the patients a trial left out, or address a site where no trial exists. It cannot replace a trial where one is feasible. Often its most useful product is a well-founded argument for or against the next trial (section 10).

    Which data, and what they lack

    Before any modeling, list what the question needs and check whether the data have it:

    • The treatment, defined at the start. The prescribed dose per fraction, number of fractions and total dose, not only the total.
    • Time zero and follow-up. The date of the first fraction, the date of death or last contact, and why follow-up ended.
    • Everything that drove the choice of schedule and also affects survival. Age, comorbidity, stage, tumor size, performance status, distance to the treating center, facility, insurance, calendar year.
    • The outcome. Death from any cause is usually recorded well. Recurrence, toxicity and cause of death often are not.

    National registries such as the National Cancer Database (NCDB) and Surveillance, Epidemiology, and End Results (SEER) are large but may lack performance status, toxicity and recurrence. An institutional electronic health record (EHR) may have them but covers fewer patients. Write down the gaps now. They become the sensitivity analyses of section 8.

    2 · The target trial

    Write the trial you would run, then imitate it

    Target trial emulation means writing the protocol of the randomized trial that would answer your question, and then making the observational analysis follow that protocol as closely as the data allow.5 It removes several biases that no estimator can fix later, and the protocol becomes the draft of a real trial if one is needed (section 10).

    Susan writes the trial protocol she would want: who enters, which schedules they could receive, when follow-up starts, and what outcome matters. Clinicians can discuss those choices before debating an algorithm. Target trial emulation fits inside the roadmap: it organizes the design, while the causal model and identification assumptions explain whether the available records can support the comparison.5,10

    Two ambitious ways to investigate

    Create the comparison.

    Assign the treatment strategies at random, then follow the patients. The design addresses treatment-assignment confounding. Treatment definitions, adherence, follow-up and applicability still need an argument.

    The protocol, element by element
    Protocol elementThe target trialThe emulation in registry or EHR data
    EligibilityAdults with a newly diagnosed tumor of the chosen site, curative intent, no prior radiotherapy to the region, both schedules acceptableThe same criteria from diagnosis codes and treatment fields. Exclude palliative courses and schedules that fit neither strategy.
    StrategiesConventional versus moderate hypofractionation, fully specified, as prescribedClassify by the prescribed schedule at the start, not by what was eventually delivered
    AssignmentRandomNot random. Assume the groups are comparable after adjusting for the measured baseline factors (section 5).
    Time zeroRandomization, immediately before the first fractionThe first day of radiotherapy, for both groups
    Follow-upFrom time zero to death, loss to follow-up, or 5 yearsThe same, with censoring at last contact, and a plan for censoring (section 5)
    OutcomeDeath from any causeVital status and date of death
    Causal contrastEffect of being assigned to a schedule (intention to treat), and of following it (per protocol)Usually the analog of intention to treat. A per-protocol analog needs data on interruptions and switching.
    Analysis planCompare survival between randomized armsAdjusted estimator chosen in section 7, prespecified, with the checks of section 8
    Trap: starting the clock late, or grouping by the course completed

    A conventional course takes several weeks longer than a hypofractionated one. Two different mistakes can follow, and both come from misaligning eligibility, assignment and the start of follow-up.12

    • Starting follow-up at the end of radiotherapy. Deaths during treatment are lost, so each group is restricted to patients who survived to a later start, and that start is later for the conventional group. This is a selection bias: it changes who is being compared. Its direction is not fixed. It depends on how the risk of death changes over those weeks, so it can favor either schedule.
    • Classifying patients by the course they completed. To be counted as having completed the longer course, a patient must survive until it ends. That stretch of guaranteed survival is immortal time, and it makes completers look better than they are.

    Starting the clock at the first fraction and classifying by the prescription avoids both. A landmark analysis that starts later on purpose is not wrong in itself, but it answers a different question about a different population, the patients who survived to the landmark.

    Trap: classifying by the dose received

    A patient who becomes too sick to continue receives fewer fractions than prescribed. Classifying by delivered fractions moves the sickest patients into whichever group looks like a shorter course. The prescribed schedule is the treatment strategy. What happened during the course is an outcome of that strategy.

    3 · The causal model

    Draw what causes what before choosing what to adjust for

    A directed acyclic graph (DAG) is a diagram where an arrow means “affects”. It decides which variables belong in the model, and that decision matters more than the choice between Cox, a random forest and a neural network.

    Three rules

    Adjust for common causes measured before treatment. Do not adjust for anything the treatment itself affects when estimating the total effect of the schedule chosen at the start. Name what is missing.

    The causal diagram for the running example
    A simplified causal diagram. Factors on the left are recorded before the schedule is chosen and can affect both the choice and survival: these are confounders, and the analysis adjusts for them. Performance status and patient preference are often not recorded (dashed). Factors on the right happen after treatment starts and are partly caused by it. The schedule affects survival along a direct path and through those post-treatment events. The total effect, which this page estimates, is the sum of both teal paths.
    The three rules, explained
    • Adjust for common causes measured before treatment. Age, comorbidity, stage, facility and calendar year can each push toward one schedule and also change survival. If uptake of hypofractionation changed over the years while other care also improved, calendar year is a confounder. These factors do drive the choice in practice: in a US registry study of breast cancer, older patients were much more likely to receive hypofractionation, and so were patients living 50 miles or more from the treating facility.13
    • Do not adjust for anything the treatment itself affects, in a baseline analysis of the total effect. Treatment interruptions, acute toxicity, early tumor response and later systemic therapy lie on the path from schedule to survival. Entering them as ordinary covariates removes part of the effect and can add new bias.14 A prediction workflow puts them in because they raise accuracy. A causal workflow for the total effect leaves them out for exactly that reason. Methods for per-protocol effects, treatment rules and censoring (sections 6 and 9) do use post-treatment history, on purpose and with g-methods. That is a different operation from adding it to a regression.
    • Name what is missing. If frailer patients with poor performance status are steered toward the shorter course, and performance status is not recorded, the comparison is confounded by indication. No estimator fixes this. Section 8 asks how strong it would have to be to change the conclusion.
    Simulation 1: better prediction, wrong effect

    A toy simulated cohort where frailty pushes patients toward hypofractionation and also lowers the outcome. Hypofractionation changes a variable measured after treatment starts, such as early response, and that variable affects the outcome. Two least-squares models are fitted to the same patients. The causal model adjusts for frailty only. The predictive model also adds the post-treatment variable, because it improves accuracy on held-out patients.

    Held-out R² (higher predicts better)

    Estimated effect, outcome units (bar = truth, whiskers = 95% interval)

    True total effectCausal model: frailty + schedulePredictive model: frailty + schedule + post-treatment variable
    How this cohort is simulated

    This is a toy model with a continuous outcome on a month-like scale and no censoring, not a survival-time simulation. Some simulated outcomes are even negative, which real survival times cannot be. Frailty is a standard normal score. The probability of hypofractionation rises with frailty. The post-treatment variable equals 1 × schedule − 0.5 × frailty plus noise. The outcome equals 48 − 12 × frailty + a direct effect of the schedule + 6 × the post-treatment variable, plus noise. The total effect of hypofractionation is the direct effect plus 6, and three scenarios set that total to 0, +4 and −4 units. Half the patients are used for fitting and half are held out. The richer model is a retrospective prediction: the post-treatment variable would not be available when the schedule is chosen. The design is taken from the author's October 2026 talk at the University of Hawaiʻi Cancer Center and recoded to run in your browser.

    3+ · Optional · A closer look at causal diagrams

    Reading, drawing and testing causal diagrams

    Section 3 gave three rules for choosing what to adjust for. This optional section shows where they come from: the three building blocks of every diagram, the backdoor criterion, the variables that should stay out of a model, selection bias, and time. It has an interactive diagram and ends with a 30-question self-test. Skip it if section 3 was enough.

    Open the section on causal diagrams
    3a · Reading a causal diagram

    A causal diagram is a picture of assumptions about what causes what. Causal inference is not possible from data alone: it needs expert knowledge about how treatment, outcome and the other variables are linked, and those assumptions cannot be tested in full.1,15 The advice is to draw the assumptions before the conclusions.1

    A prediction model needs no such diagram. A prior hospitalization may predict heart failure well, yet nobody would stop admitting patients to prevent heart failure.1 A causal question is different, and every causal conclusion drawn from a statistical model rests on some causal structure. A diagram makes that structure explicit.16

    TermPlain meaning
    Arrow, directed, acyclicAn arrow from V to W means V has a direct effect on W in at least one patient. Arrows have a direction, and no variable can cause itself, directly or through others.1
    Path, causal pathA path is any chain of arrows between two variables, whatever their direction. Open paths transmit statistical association and blocked paths do not. On a causal path every arrow points from the treatment toward the outcome.17
    Backdoor pathA non-causal path between treatment and outcome that starts with an arrow into the treatment.1,18
    Parent, ancestor, descendantA parent is a direct cause, an ancestor a direct or indirect cause, and a descendant a direct or indirect effect.16
    Confounder, mediatorA confounder is a common cause of treatment and outcome. A mediator is caused by the treatment and causes the outcome.17
    ColliderA variable on a path where two arrowheads meet, as in A → L ← Y.1
    Sufficient adjustment setA set of variables that, adjusted for, closes every non-causal path and leaves every causal path open.17

    What an arrow, and a missing arrow, claim

    • A missing arrow is the strong claim. Leaving an arrow out says there is no effect at all. Drawing it allows an effect of any size, including a very small one.17
    • An arrow states that an effect exists and its direction, not its sign, size or shape.17
    • Every common cause of any two variables in the diagram must also be in it, even if it was never measured.1,19 An unmeasured variable is still drawn.20
    • Feedback over time, such as depression worsening pain and pain worsening depression, is drawn by indexing time: the same measurement at two times becomes two variables.16
    3b · Chains, forks and colliders

    Every path, however long, is built from three structures. Adjusting for a variable, whether by putting it in a regression, stratifying, restricting or matching, does opposite things to them.

    Chain Fork Collider A M Y A L Y A C Y
    StructureNot adjustedAdjusted for the middle variable
    Chain A → M → Y, for example aspirin → platelet aggregation → heart diseaseOpen: association flows from A to YBlocked1
    Fork A ← L → Y, where L causes bothOpen: A predicts Y even though A has no effect on YBlocked1
    Collider A → C ← YBlocked: a collider stops the flow of associationOpen, and adjusting for a descendant of C opens it too1

    These rules are from What If, chapter 6.1 The colors show the usual wish when A is the treatment and the path is non-causal: green for blocked, red for open. On the causal chain an open path is what you want.

    • Why adjusting for a collider creates association. Thrombus and hemorrhage can both cause a stroke. In a patient with stroke symptoms, learning that there was no hemorrhage makes a thrombus more likely.16 Knowing the common effect links its causes.
    • In a worked example, fever had only two causes, influenza and a tainted sandwich, and the sandwich was assigned at random. Among people with fever, influenza risk differed by 0.9 between sandwich groups, an association that did not exist before restricting to fever.19
    • Whether a variable is a collider depends on the path: the same variable can be a collider on one path and not on another.19
    • The general rule. A path is blocked if it contains an adjusted variable that is not a collider, or a collider that is not adjusted for and has no adjusted descendant. Two variables are expected to be independent when every path between them is blocked.1
    • Two variables can be associated for three structural reasons: one causes the other, they share a cause, or the analysis is restricted by a common effect or its descendant. Chance is a fourth, and unlike the others it shrinks as the study grows.1
    3c · Confounding and the backdoor criterion

    Confounding is bias from common causes of treatment and outcome, which leave a backdoor path open.1 The backdoor criterion says that a set of variables is enough for the adjustment if it blocks every backdoor path and contains no descendant of the treatment.1

    • Adjusting for one non-collider on a backdoor path is enough to close that path, so a small set often closes all of them.21
    • Several different sets can each be sufficient. Choose among them for practical reasons, such as which variables are measured best.20
    • A measured variable can be worth adjusting for without being a common cause itself, if it sits on a backdoor path that runs through an unmeasured common cause.1
    • A measured stand-in for an unmeasured confounder, such as income for socioeconomic status, is usually worth adjusting for, because it often partly blocks the path.1
    • The criterion says nothing about how large the bias is or which way it points. A large confounding bias needs a confounder strongly linked to both treatment and outcome.1 Sensitivity analyses (section 8) organize educated guesses about the size.1

    Confounding by indication, the usual problem in oncology

    A treatment is confounded by indication when it is given more often to patients with a condition that is also a risk factor for the outcome.1

    • A hypothetical example: in a study of chemotherapy and survival, age affects performance status and survival, performance status steers the treatment choice and also affects survival, and chemotherapy causes neutropenia, which affects survival. Adjusting for performance status closes both backdoor paths, including the one through age, because in this diagram age reaches the treatment choice only through performance status. Do not adjust for neutropenia, which the treatment causes.1
    • Outside oncology: in a Japanese registry study of out-of-hospital cardiac arrest, patients with a confirmed cardiac output when emergency medical services arrived were often ventilated by bag-valve-mask. Adding this one variable lowered the odds ratio for a good neurological outcome with bag-valve-mask from 3.24 to 2.60.22
    • In an oncology cohort, adjusting for the prognostic factors that drove the treatment choice blocks the backdoor paths through them, if all of them are measured.23 A diagram makes that condition visible. In one comparison with an external control group, the diagram showed that five factors chosen by an expert panel were assumed to be the only prognostic factors for overall survival.23
    3d · What not to adjust for

    Adjusting for more variables is not the same as controlling confounding better. Some variables create bias when they enter the model.

    VariableStructureWhat adjusting for it does
    MediatorA → M → YBlocks the part of the effect that goes through M, so the estimate is no longer the total effect.1
    Mediator, oncologyTreatment → progression status → deathFor the total effect on overall survival, adjusting for progression is not needed,23 and it would block the part of the effect that acts through progression. Progression status after randomization is the mediator. Progression-free survival is a separate endpoint that counts progression or death, so it is not a covariate either.
    Mediator with its own common cause with the outcomeA → M → Y, with W → M and W → YAlso opens A → M ← W → Y, because M is a collider on that path.17
    ColliderShift work → sleepiness ← sleep apneaOpens a closed path. If shift work has no effect on sleep apnea, the analysis can still report an inverse association.21
    Collider measured before treatment (M-bias)A ← U2 → L ← U1 → YIn a textbook example, a Pap smear (L) is caused by a health-conscious personality, linked to physical activity (A), and by a precancerous lesion, linked to cervical cancer (Y). Adjusting for the Pap smear opens the backdoor path.1
    InstrumentZ → A onlyCannot remove confounding, and can amplify the bias from an unmeasured confounder.1,23
    Descendant of the outcomeY → ZDo not adjust for it, stratify on it or condition on it in any way.20
    • “Adjust for everything measured before treatment” is wrong. The belief that adjusting for all available pre-treatment covariates minimizes bias fails for two reasons: colliders like the Pap smear, and instruments that amplify bias.1
    • Timing alone does not decide. A blanket rule never to adjust for anything measured after treatment is also too simple: a variable recorded later but not affected by the treatment can still close a backdoor path. Causal diagrams do not care about temporal order.1 What matters is whether the treatment affects the variable.
    • An oncology example of a post-treatment variable. In the PACIFIC trial, patients with unresectable stage III non-small cell lung cancer and no disease progression after concurrent chemoradiotherapy were randomized to consolidation durvalumab or placebo 1 to 42 days after it. Patients with unresolved toxicity above grade 2, or with pneumonitis of grade 2 or worse, were excluded.24 In practice, similar criteria usually decide who receives consolidation, so receiving it depends partly on how the radiotherapy went. In a study of the radiotherapy itself it is then a descendant of the treatment, and leaving it out of the adjustment set keeps the total effect intact.1 That total effect includes the consolidation practice of the study period, so it can differ between eras. The effect of consolidation itself is a separate question about a later treatment decision (section 6, and 3f below).
    • The data cannot tell a confounder from a collider. Whether to adjust for a variable cannot be decided by any procedure based only on statistical associations.1,18 The traditional checklist (associated with treatment, associated with outcome, not on the causal pathway) can label a collider a confounder.1 Stepwise and P-value-based selection should not be used for causal questions, because they treat confounders and colliders alike.21 Even among 234 articles that used diagrams, 18% still added statistical criteria for choosing covariates.17
    Try it: adjust for variables and watch the paths open and close

    A hypothetical diagram for the running example, drawn to show each structure once. Age, stage and performance status affect both the schedule and survival. The schedule affects survival directly and through acute toxicity. An unrecorded factor U raises both toxicity and the risk of death. A heavier frame marks a variable you adjust for.

    Adjust for
    3e · Selection bias

    Selection bias, in the structural sense, is bias from conditioning on a common effect of two variables, one linked to the treatment and the other to the outcome.1 It is not caused by common causes, so it can arise in randomized trials as well as in observational studies.1 Randomization protects against confounding, but not against selection that happens after randomization. Selecting volunteers before randomization does not bias the comparison.1

    Who is in the analysisColliderExample
    Patients still under follow-upRemaining uncensoredIn a hypothetical trial with a true risk ratio of 1, the risk ratio among the uncensored was 0.89. This is also called informative censoring.1
    Patients in an oncology trialCensoringCensoring is not at random in practice, so draw arrows from prognostic factors to censoring.23
    Survivors of earlier intervalsSurviving to time tTreated survivors are less likely than untreated survivors to have a protective factor, so later hazard ratios can cross 1 even in a randomized trial.1 This is one reason section 4 prefers survival differences to hazard ratios.
    Prevalent casesSurviving to be studiedThe tissue type HLA-A2 seemed to raise the risk of acute lymphoblastic leukemia in already diagnosed cases, but it was linked to longer survival, not to disease risk.18
    Patients who already have the cancerHaving the diseaseIf the exposure and unmeasured risk factors both cause the cancer, restricting to cases creates a spurious association between them.25
    Hospitalized patientsAdmissionRestricting to admitted patients conditions on a collider (Berkson's bias).16 In samples of hospitalized patients, anything that raises the chance of admission can become negatively associated with COVID-19 infection.26
    Patients admitted after an injuryHospitalization with traumatic brain injuryRequiring hospitalization for inclusion makes it a collider, so alcohol use can appear to improve in-hospital survival without any protective effect.27
    Patients who had an index eventThe index eventOnce the analysis conditions on infection, all causes of infection become correlated with one another, which can make a factor look protective for progression.26
    • Famous paradoxes. Selection on a collider largely explains the reported link between postmenopausal hormone therapy and coronary heart disease, the birth weight paradox and the obesity paradox.28 In the obesity paradox, heavier patients with chronic disease often have lower mortality. If heavier, sicker patients die before they can be included in studies, obesity will appear protective.29
    • A structure does not tell you the size. Collider bias from selection can be large enough to create, hide, inflate or reverse an association.26 It can also be small: in simulations of a case-only analysis of obesity and prostate cancer death, collider bias changed the odds ratio by no more than 4% across plausible values.25
    • Fixes. Inverse probability weighting gives each selected patient a weight equal to the inverse of their probability of selection, so they also stand for similar patients who were not selected.1 The best protection is a sampling strategy chosen at the design stage.26
    3f · Time, treatment and time zero
    • Treatment-confounder feedback. When a confounder affects later treatment and earlier treatment affects the confounder, regression, stratification and matching cannot adjust correctly, even with every confounder measured. G-methods can.1 This is the time-varying confounding of section 6.
    • Immortal time. Immortal time bias arises when patients receive a treatment because they survived, rather than survive because they received it.30 The two best fixes are to analyze the treatment as a time-varying exposure and to align follow-up in treated and untreated patients. Excluding early deaths among the untreated is weaker, because the groups stop being directly comparable.30 Analyzing the treatment as time-varying fixes the misallocated person-time, but it does not by itself handle time-varying confounding, which needs the g-methods above.
    • In a study of stage IV non-small cell lung cancer timed from diagnosis, patients had to survive long enough to start systemic therapy. A naive adjustment that subtracted an assumed immortal period cut the median survival difference between chemoimmunotherapy and chemotherapy by 40%, from 5.6 to 3.4 months, which the authors present as the minimum change to expect. It illustrates how large the bias can be. It is not a corrected estimate of the treatment effect, which needs a time-varying analysis or a target trial emulation.31
    • Time zero. Time zero is the point where eligibility is met, a patient is assigned to one of the compared strategies, and follow-up for the outcome starts. Eligibility must be met at time zero, and outcomes count only after it. A strategy can be not to start the treatment, so eligible non-initiators need the same kind of starting point as initiators. Starting later excludes outcomes that happened in between and can cause selection bias. A strategy may allow a grace period for starting treatment, and the emulation must then allow the same grace period from time zero.5 Immortal time comes from classifying patients at time zero by treatment they receive later. Section 2 applies this to the running example.
    3g · What a diagram cannot do
    A diagram cannotWhy it matters
    Show the size of a biasIt holds no numbers, so size must come from data or a sensitivity analysis.1
    Show how two causes interactTwo arrows into one variable do not say how the causes combine, and diagrams cannot tell types of effect modification apart.1
    Show random errorDiagrams show systematic error, not chance.18
    Prove itself, or replace the analysisA diagram is only as good as the knowledge behind it, and it does not replace the statistical modeling decisions.20,18
    • Measurement. Measurement bias weakens or strengthens the association because of how the data were recorded, and a mismeasured treatment is drawn as its own variable.1 A mismeasured confounder cannot fully block its backdoor path. The exception is when clinicians decide on the recorded value itself, as with office blood pressure: adjusting for the recorded value is then enough.1
    • When several diagrams are plausible, check whether the results differ across the analyses they imply, and say so.20 If the evidence cannot separate them, draw each and look for one adjustment set that works for all.16
    • The treatment in a diagram must be a well-defined intervention. Obesity can be an outcome or a covariate, but generally not the treatment.1 A fractionation schedule, specified by dose and number of fractions, is one.
    3h · Drawing and reporting a diagram
    • Draw the diagram when the question is first conceived. It is often the right Figure 1 for a proposal or a paper.20 Building a credible one takes clinicians and methodologists together.16
    • The tool DAGitty (dagitty.net) draws diagrams and lists every minimal sufficient adjustment set. Its R package can also test whether the diagram is consistent with the data, which can catch errors in how it was specified.32
    • What to report, following a review of practice: the estimand, the diagram itself, all relevant variables whether measured or not, arrows arranged in time order, a justification for each missing arrow, the adjustment set the diagram implies, the estimate from that set even if other models are preferred, any alternative sets reported separately, and a bias analysis for unmeasured confounding.17
    • Practice falls short. Of 234 articles that used diagrams, 21% reported the estimand, 48% the implied adjustment set and 62% at least one diagram. None tested whether the diagram was compatible with the data.17

    The Table 2 fallacy

    The Table 2 fallacy is reading the coefficients of several risk factors in one multivariable model as causal effects.17 Even when the model holds every confounder of the treatment, the other coefficients cannot automatically be read as the same kind of causal effect. A confounder's own confounders may not have been adjusted for. And once the treatment is in the model, a confounder's coefficient is at most a direct effect, not its total effect.1 When several exposures matter, fit a separate model for each one.21 The same variable can be a mediator for one question and a confounder for another.18 This is why a hazard ratio for age, printed beside the hazard ratio for the schedule, is not an effect of age.

    Reading an observational oncology paper

    AskRed flag
    Is the question causal or predictive?Causal language with covariates chosen as for a prediction model21
    Is there a diagram and a stated adjustment set?Covariates listed with no causal reason17
    What drove the treatment choice?Performance status, stage or severity driving treatment but not adjusted for1
    How were covariates chosen?Stepwise or P-value rules, which can let colliders in21
    Are post-treatment variables in the model?Progression, toxicity or later therapy that the treatment may have affected1
    Who got into the sample?Hospitalized, prevalent or case-only samples, or volunteers in an observational cohort1
    When does follow-up start?Time zero at diagnosis while treatment starts later30,5
    Are covariate coefficients interpreted?A table of “independent risk factors” read causally21
    Is unmeasured confounding addressed?No bias or sensitivity analysis17
    Test yourself: 30 questions on causal diagrams

    The causal-diagram self-test has 30 multiple-choice questions on this section, from oncology, critical care, emergency medicine and perinatal research, including six that ask you to read a diagram and pick the adjustment set. After each answer you see the reasoning and the source, and the final report links every miss back to the subsection above that covers it.

    4 · The estimand

    Decide the exact number you want

    An estimand is the quantity your analysis is supposed to estimate, written before any data are touched. For the running example: the average 5-year RMST if every eligible patient received hypofractionation, minus the same quantity if every eligible patient received conventional fractionation.

    For whom?
    The patients in the target population
    Comparing what?
    Two specified treatment strategies
    On which outcome?
    A quantity that answers the clinical question
    Over how long?
    A follow-up horizon chosen in advance
    What RMST is, and why it suits clinical decisions

    RMST is the area under the survival curve up to 5 years, in other words the average number of months lived within those 5 years.33 A difference of 2 months is something a patient and a clinician can weigh against convenience and toxicity.

    For whom: the whole population, the treated, or subgroups?
    • Average treatment effect (ATE): everyone eligible. Answers “what if we changed practice for this whole population?”.
    • Average treatment effect in the treated (ATT): the patients who actually received hypofractionation. Answers “did it help the patients we gave it to?”.
    • Conditional average treatment effect (CATE): patients with given characteristics, such as age 75 or older. Answers “who benefits more?”, the question behind tailoring treatment to subgroups and individual patients. It is harder to estimate reliably and needs its own checks.
    Why not a hazard ratio?

    The hazard ratio (HR) from a Cox model compares death rates among patients still alive at each moment. If the treatment helps early, the patients still alive later in the two groups differ in more than their treatment, so a hazard ratio has selection built into it. It also changes over time whenever hazards are not proportional, and a single HR then averages over an effect that is moving.34 A Cox model remains a good description tool and a reasonable outcome model inside some causal estimators. However, the number to report for a causal question is usually a difference in survival probability or RMST at stated times.

    Go deeper on survival effects

    How an effect can rise, peak and even reverse over follow-up, why one hazard ratio cannot show that, and how a causal survival forest and CAST estimate the whole trajectory are worked through with simulated data on the CAST walkthrough. The methods and diagnostics page lets you change the strength of confounding and watch each method respond.

    5 · Identification

    Can these data answer the question at all?

    Identification asks whether the estimand could be computed from the observed data if you had unlimited patients. For the treatment, it rests on three assumptions: exchangeability, positivity and consistency.1 For a survival outcome, it also rests on assumptions about censoring.35

    A lamp illuminates several threads, while one thread runs beyond the light.
    Measured variables illuminate part of the comparison. An unobserved common cause can leave a path outside the light.
    Two layers

    Identification decides whether the data can answer the question. Estimation (section 7) decides how well you compute the answer. Better models, including neural networks, help the second layer. They cannot fix a failure of the first.

    The three treatment assumptions, in plain clinical terms
    AssumptionPlain meaning in the exampleHow to probe it
    Exchangeability (no unmeasured confounding)After adjusting for the measured baseline factors, the schedule a patient got is unrelated to how long they would have lived under either scheduleThe DAG. Balance checks. Sensitivity analysis for what is missing.
    Positivity (overlap)Every kind of patient could plausibly have received either schedule. If a policy gives every patient over 85 hypofractionation, the data say nothing about conventional fractionation at that age. An empty cell in a small sample is not proof of such a rule: check why it is empty.Plot the estimated probability of hypofractionation in each group. Restrict the population where overlap fails, and say that the restricted population is now the one your answer applies to.
    Consistency (a well-defined treatment)“Hypofractionation” means a specific schedule, or a family whose versions are named and chosen by a stated rule, not anything shorter than usualDefine the strategies by total dose, dose per fraction and number of fractions. Similar estimates across versions are reassuring but do not prove the versions are interchangeable.
    Censoring and follow-up: the assumptions survival adds

    Patients who are lost to follow-up or reach the data cutoff are censored. Two more conditions are then needed:35

    • Ignorable censoring. Given the measured variables, whether a patient is censored is unrelated to how long they would have survived. Administrative censoring at a fixed data cutoff usually satisfies this. Loss to follow-up in sicker or healthier patients may not.
    • Follow-up through the horizon. Every kind of patient needs a real chance of still being followed at 5 years. A group that is all censored by year 3 cannot support a 5-year estimate, however good the model.

    Randomization does not fix informative loss to follow-up: it balances the assigned treatment, not who drops out later. Many estimators exist in a complete-outcome form and a survival form. The plan must name a version that handles censoring, such as censoring weights or a survival-specific estimator.

    Simulation 2: when the confounder is not in the data

    A toy simulation with a continuous outcome on a month-like scale and no censoring. Performance status is worse in some patients. Those patients are more likely to receive hypofractionation and have lower outcomes. Three other covariates are recorded. The true effect of hypofractionation is unit. Two least-squares models use the same simulated patients and differ only in whether performance status is among the covariates. Move the slider to change how strongly performance status drives both the schedule and the outcome.

    Estimated effect of hypofractionation, outcome units (95% interval)

    TruthPerformance status recordedPerformance status not recorded

    6 · Treatment policies

    Compare the rules clinicians actually use

    “Everyone gets hypofractionation” versus “everyone gets conventional fractionation” is a static comparison. Clinicians follow rules, and a causal analysis can compare rules directly: dynamic rules that depend on the patient, and modified treatment policies that shift practice a step.

    Four kinds of strategy, with examples
    Kind of strategyExampleQuestion it answers
    StaticAll eligible patients receive hypofractionationWhat if practice switched completely?
    Dynamic, decided onceHypofractionation if age is 70 or older or travel time exceeds one hour, conventional otherwise, decided at the startIs this triage rule better than current practice, or than treating everyone the same way?
    Modified treatment policyA fully specified change to each patient's own prescription, for example: the same total dose in five fewer fractions, with fraction size raised to match, applied only where dose constraints allow and where such schedules were actually usedWhat if we shifted practice a step, instead of all the way?
    Dynamic, during treatmentReplan the course if weight loss during treatment exceeds 10%Decisions made during treatment, based on how the patient is doing

    A dynamic strategy is a rule that assigns treatment at each decision point from the patient's history up to that point.1 A rule decided once from baseline factors needs only single-time-point methods. Longitudinal modified treatment policies (LMTP) define the effect of changing each patient's treatment as a function of the treatment the patient would otherwise have received and of their history, with treatment and confounders that change over time.36 A modified policy is a hypothetical, fully specified map from the observed prescription to a new one. It is something to estimate, not an instruction to remove fractions.

    Trap: time-varying confounding

    Weight loss during treatment can be caused by the earlier fractions and can also trigger a change of plan. When earlier treatment affects a factor that then drives later treatment, traditional adjustment, such as entering weight loss as a time-varying covariate in a Cox model, can introduce bias even when every confounder is measured.1 The g-methods, which include the LMTP estimators, are built for this setting.36

    7 · The estimator

    Choose the estimator last, and put your machine learning inside it

    Once the estimand is identified, several estimators can compute it. Most need two prediction tasks, called nuisance models: the outcome given baseline factors, and the probability of receiving each schedule given baseline factors (the propensity score).2 This is where random forests, XGBoost and neural networks go. They stop being the analysis and become components of it.

    The estimator menu

    For example, targeted maximum likelihood estimation (TMLE) is often paired with super learning, which combines machine-learning algorithms so that the estimate depends less on any one modeling assumption being right.10

    EstimatorWhat it modelsWhat must be rightWhat it gives you
    Cox model with a treatment term (for contrast)Hazard given treatment and covariatesProportional hazards, the right covariates, a correct formOne conditional hazard ratio
    Outcome regression (g-computation)Outcome given treatment and covariatesThe outcome modelAverage outcomes under each strategy, for example adjusted survival curves
    Inverse probability of treatment weighting (IPTW)Propensity scoreThe propensity model, and enough overlapWeighted outcomes or survival curves under each strategy
    Augmented IPTW (AIPW)BothFor consistency, either model (doubly robust)Average effect. Flexible machine learning can be used for both models when combined with cross-fitting.6
    TMLEBoth, then a targeting stepFor consistency, either model (doubly robust)Average effect. Often paired with super learning.10
    Double machine learning (DML)Both, with orthogonal scores and cross-fittingBoth models learned well enough, and a score chosen for the estimand. Their errors then affect the estimate only at second order.The effect the chosen score targets. The simple partially linear version assumes the effect is the same for every patient.6 When effects vary, it estimates a weighted average instead, so pick the score for the estimand.
    LMTP estimatorsBoth, at each time pointTMLE: one of a set of ordered combinations of correct models. Sequentially doubly robust (SDR): at each time point, either the outcome model or the treatment model.36Effects of modified and rule-based policies, including treatments that change over time
    Causal forest and causal survival forest (CSF)Treatment effect as a function of covariates, with doubly robust correctionsOverlap, enough data for subgroups, and for CSF ignorable censoring with follow-up through the horizonWho benefits more (CATE) and the average effect. CSF handles censored outcomes, targeting RMST or survival probability.7,35
    CASTCSF estimates at several horizons, joined by a trajectory modelEverything CSF needs, plus the trajectory model and its assumptions about uncertainty across horizonsA smooth effect trajectory over follow-up.37 Peaks and crossings are model-based summaries. See the CAST walkthrough.
    What “doubly robust” does and does not promise

    “Doubly robust” means the estimate stays consistent if either the outcome model or the propensity model is correct, given the identification assumptions of section 5.1 Its larger practical benefit is that flexible machine learning can be used for both. The confidence interval keeps its meaning only under further conditions: overlap, nuisance models learned well enough, an appropriate score for the estimand, and cross-fitting or similar safeguards.6 A poorly fitted learner does not earn a valid interval. Running two or three estimators that depend on different models is also one of the checks in section 8.

    Two safeguards inside the estimator: cross-fitting and honest trees

    Double machine learning reduces the bias that flexible learners bring to an effect estimate with two ingredients. The first is a score that is insensitive to small errors in the nuisance models (a Neyman-orthogonal score). The second is cross-fitting: the patients are split into folds, the nuisance models for each fold are fitted on the other folds, and the estimates from all folds are averaged. Without this kind of splitting, the errors of an overfitted learner can stay in the estimate and spoil it.6 Simulation 3 shows the first ingredient at work.

    Causal forests use a related idea called honesty. In the usual form, each tree is grown on one subsample, and the estimates in its leaves come from a different subsample,7 so the same outcomes are not used both to choose the splits and to estimate the effects inside them.

    Simulation 3: every confounder measured, but the model is tuned for prediction

    Here nothing is missing. A toy simulated cohort of patients, with a continuous outcome and no censoring, has recorded covariates. A few strongly affect the outcome. Many affect the choice of schedule strongly and the outcome only weakly. The rest affect neither. The true effect is units, the same for every patient. A lasso, a regression with a penalty that shrinks coefficients, is fitted at penalty strengths, always keeping the schedule term unpenalized. Move the slider to change the penalty.

    Held-out R²

    Estimated effect, outcome units

    Lasso, read as an effectDML with the same lasso inside (95% interval)Truth
    Why this happens

    The covariates that mostly predict who receives hypofractionation add little to predicting the outcome, so the penalty shrinks them first. Shrinking them hands their share of the confounding to the schedule term. Prediction accuracy barely changes, so a model chosen for accuracy cannot see the problem. Double machine learning uses the lasso twice, once to predict the outcome and once to predict the schedule, each on held-out folds, and then relates the two sets of residuals. Errors in either prediction then affect the effect estimate only at second order. Because the simulated effect is the same for every patient, this simple residual-on-residual version targets it. With effects that vary, it would target a weighted average instead. Unpenalized least squares would also work here, because the model is linear and the sample is large. The lesson is not to read an effect off a model tuned for prediction.

    Try it: which estimator should I start with?
    When is the treatment decided?
    What do you want to learn?
    At which times?

    8 · Checks and sensitivity

    Build confidence without an answer key

    A prediction is validated on held-out outcomes. A causal estimate cannot be validated that way, so confidence comes from how much it withstands: overlap, agreement across estimators, planted-effect and negative-control checks, and a bias analysis for what was not measured.

    A rehearsal with an answer key

    Can the pipeline recover an effect we put there?

    Before interpreting the real study, Susan can simulate cohorts with similar covariates, treatment selection and follow-up, while setting the treatment effect herself. She runs the planned analysis across many simulated studies, checking bias, interval coverage (how often the interval contains the truth), and false discoveries. A failure gives her something to repair before relying on the real-data result.43

    1. A missing common causeTurn up an unrecorded factor and watch the effect estimate drift.
    2. The wrong variable to adjust forSee how a downstream measurement can improve prediction while distorting the comparison.
    3. A learner tuned for predictionCompare reading off a coefficient with using the learner inside a causal estimator.
    Plan a survival rehearsal for Susan’s study

    Choose the target first, then plant several plausible effect sizes and shapes: no effect, a steady benefit, a delayed benefit, and benefit followed by harm. Vary overlap, follow-up, hidden confounding and model misspecification. Include a shape that the chosen trajectory model cannot represent well. Prespecify performance measures, repeat each scenario, and report Monte Carlo uncertainty.43

    The three exercises above isolate particular failures; they do not run this full survival rehearsal. The CAST companion explores survival trajectories and method comparisons. Passing a simulation supports performance under the simulated conditions. It does not verify the real study’s unmeasured-confounding assumption.

    A practical sequence of checks
    1. Overlap and balance. Plot the propensity scores by group, and check that the adjusted groups are similar on every baseline factor.
    2. Agreement across estimators. If TMLE, IPTW and a causal survival forest, which rely on different models, give similar answers, the result does not hinge on one modeling choice.
    3. Rehearse with known truths. Run the pipeline across repeated synthetic cohorts with several planted effects, including zero. Examine bias, interval coverage and failure cases; one successful run is not enough.
    4. Software and bias checks that should give nothing. Shuffling the treatment labels is a software check: the estimate should be near zero. A negative-control outcome, one the treatment cannot affect, is a check on bias: a clearly nonzero estimate signals residual confounding to investigate, although it does not tell you the size or direction of the bias in the main result.
    5. How wrong could it be? State a plausible range of unmeasured confounding, with reasons, and ask whether the estimate stays on the same side of your clinical thresholds for benefit and harm across that range. For an RMST difference, do this on the RMST scale, with a bias model or a simulation that adds the hidden factor. The E-value expresses the needed strength of confounding on the risk ratio scale. It applies directly to a risk ratio, such as for 5-year mortality, or to a ratio of mean survival times. A difference in months needs a conversion whose assumptions must be stated, so a bias analysis on the RMST scale is usually clearer.38 For regression-based estimates, another approach expresses it as the share of variation in treatment and outcome a hidden factor would need, compared against measured covariates such as age or stage.39

    None of these proves the answer is right. Together they show which conclusions survive and which depend on a single assumption. The CAST methods page shows the bias question for survival data: a simulated unmeasured confounder moves every method at once while the visible diagnostics still look healthy.

    Missing covariates: imputing for inference is not the same as imputing for prediction

    The right way to fill in missing covariates depends on what the analysis is for.

    For a causal or other inferential analysis, missing values are often filled in by multiple imputation, under an assumption such as missing at random. The imputation model should then contain every variable in the analysis, including the treatment and the outcome, and for survival data the follow-up time as well. The outcome holds information about the missing values, and leaving it out falsely weakens the associations of the imputed covariates with the outcome. Keep the several imputed datasets and combine them with Rubin's rules, so the interval reflects the uncertainty about the missing values. Data that are missing not at random cannot be told apart from data missing at random using the observed data, so they need sensitivity analyses under different assumptions.40

    For a prediction that will be made before the patient's outcome is known, a check on held-out patients must use only the information a new patient would have. Split first, fit any imputation on the training patients only, and fill in the held-out patients without using the held-out outcomes. Imputing on the whole dataset before splitting is one form of data leakage, and leakage usually makes performance look better than it is.41 Imputations that use the outcome are right for the inferential analysis above and wrong for this check. Wood and colleagues call the two targets ideal performance, where every predictor is observed, and pragmatic performance, where some predictors are missing in practice. For pragmatic performance they construct predictions from imputations that make no use of observed outcomes.42

    What a simulation can and cannot tell you

    A simulation is useful because the truth is known: it was used to generate the data. Estimators can then be compared on their bias, whether they hit the true effect on average,43 which is a different criterion from predictive accuracy. Its lessons reach only as far as the scenarios simulated. A method can look good in a scenario that happens to suit it and do poorly in others, and deliberately extreme scenarios show when and how each method fails.43 A simulation also says nothing about unmeasured confounding in a real cohort beyond what was built into it. The three simulations on this page are built that way on purpose, each to show one failure.

    Summary

    What each approach tells you about the same question

    Compare the question each analysis is designed to answer. A coefficient from a fitted model describes an association unless a study design and causal argument support more. The roadmap connects those choices to what would happen under each strategy.

    The table compares common uses of the tools. A Cox model or a prediction learner can also serve inside a causal analysis. The model’s name does not determine whether the resulting claim is causal.

    Side-by-side comparison
    Cox model with a treatment termPrediction model (random survival forest, XGBoost, neural network)Causal roadmap with a causal estimator
    Question answeredHow is the hazard associated with the schedule, given the covariates in the model?What will happen to this patient?What would happen if these patients received one schedule rather than the other?
    Main outputOne hazard ratioPredicted risk or survival curve per patientDifferences in survival probability or RMST under each strategy, at stated times, with intervals
    How it is checkedModel fit, proportional-hazards testHeld-out C-index and calibrationDesign (target trial, DAG), overlap, balance, estimator agreement, planted-effect and negative-control checks, bias analysis
    Confounding by indicationHandled only for the covariates included and in the form assumedNot addressed. Accuracy can rise while the implied effect gets worse.Addressed for measured confounders, and stated openly for unmeasured ones
    Variables measured after treatmentOften included by habit, which biases the effectIncluded whenever they help predictionLeft out of a baseline adjustment for the total effect, and used deliberately by g-methods where needed
    Effects that change over timeAveraged into one numberNot the targetEstimated at each horizon, or as a trajectory (CAST)
    Treatment rulesNoNoStatic, dynamic and modified policies (LMTP)
    On randomized trial dataEstimates a hazard ratio between armsPredicts risk, which can be used to group patients by baseline riskAdds precision, who benefits, effects over time, per-protocol effects and transport to other patients (section 9)
    Where machine learning fitsRarelyIt is the whole modelInside the nuisance models, via super learning or cross-fitting
    Habits worth changing
    • Putting every available variable into the model. Adjust for baseline common causes from the DAG, and leave out what the treatment affects.
    • Reading the treatment effect from feature importance or SHAP. These describe how the model uses its inputs. They are not treatment effects.
    • Reporting a hazard ratio as “the effect”. Report survival or RMST differences at prespecified times.
    • Starting follow-up at the end of treatment. Start it where the target trial would randomize.
    • Choosing the model with the best C-index for an effect question. Choose the estimator for the estimand, then check it as in section 8.

    9 · Beyond registries

    Causal machine learning on randomized trial data

    The same estimators apply to observational and randomized studies alike. What changes is which assumptions the design guarantees. Randomization makes the assigned groups comparable, so the effect of being assigned to a schedule, the intention-to-treat effect, needs no adjustment for confounding.1 The propensity score is known: it is the randomization probability. Censoring and nonadherence are not settled by randomization.

    An average near zero: no benefit, or benefits that cancel?

    Either is possible. A conditional average treatment effect (CATE) describes an average among patients with specified characteristics. A forest may suggest that effects differ across those characteristics, but an exploratory split is not yet a dependable treatment rule.

    Susan needs uncertainty intervals, adequate overlap and follow-up within the relevant groups, and a check of the discovery on data that did not select it. Prespecified, clinically motivated analyses and analyses by baseline risk are useful starting points. Searching many subgroups increases the opportunity for chance patterns; sample splitting and regularization help but cannot create information a small study lacks. Report inconclusive subgroup evidence as inconclusive.7,45

    Stephen Senn’s critique of personalized medicine is a useful caution here: variation in observed outcomes is not, by itself, evidence of stable differences in individual treatment response.49 Even a well-supported CATE remains a group average. It does not reveal what would have happened to a particular patient under the treatment they did not receive.

    A new population, a new question

    Would Susan’s result travel to another clinic?

    Start with a toy example. Suppose the five-year survival benefit is 8 percentage points among fitter patients and −2 points among frailer patients. In a study with 80% fitter patients, the average benefit is 6 points. What happens if the target clinic has a different mix?

    Target average benefit: 0.0 percentage points

    Illustration only: 8 × the fitter share + (−2) × the frailer share. The subgroup effects are stipulated to stay the same in both settings, on this outcome scale and at this horizon. Moving the slider changes the population mix, not the evidence for that assumption.

    What must hold for that calculation to be useful?

    Name the source and target populations, treatment strategies, outcome and horizon. Then ask which effect modifiers differ, whether they are measured comparably, and whether the source supports the target’s patient groups and treatments. In this simple example, weighting subgroup effects by the target mix works only if those effects carry over. A target group absent from the source requires further information or explicit extrapolation assumptions.

    Bareinboim and Pearl’s data-fusion framework asks which combination of observations, experiments and assumptions can identify the target effect.3 It supplies a way to reason about transport, not a guarantee that any two populations can be combined. A target-population CATE also needs support for that subgroup; individual response remains a separate question.

    If predictions fit poorly at the new clinic, investigate differences in case mix, measurement, care and follow-up. Good predictive fit would not, on its own, establish that the treatment effect transports. Keep confounding within the study, treatment overlap and support for the new population as distinct questions.

    Five jobs for causal machine learning in a trial
    Use in a trialWhat it answersWhat to watch
    Covariate adjustmentThe same average effect, more precisely. Adjusting for baseline factors that predict the outcome generally narrows the confidence interval and makes tests more powerful, with minimal impact on bias or the type I error rate.44 AIPW and TMLE with machine-learning outcome models are one way to do this.Prespecify the covariates and the method, and do not adjust for covariates measured after randomization, which the treatment could affect.44 The gain is expected, not guaranteed for every trial. The US Food and Drug Administration (FDA) guidance on adjustment does not cover machine-learning methods, so a registration trial needs to check current regulatory views.
    Who benefitsHow the effect varies with baseline factors (the CATE), from a causal forest or causal survival forest.7,35 Randomization removes confounding from these estimates. What remains is a statistical problem.Trials are powered for the average effect. The Predictive Approaches to Treatment effect Heterogeneity (PATH) statement recommends analyses by baseline risk first. It warns that flexible effect models can produce signals of benefit and harm even for a treatment with no effect, and asks for results on both absolute and relative scales, with emphasis on absolute risk differences.45 Treat subgroups as hypotheses.
    Effects over timeHow a trial's effect rises, peaks or fades over follow-up, from causal survival forest estimates at several horizons joined by CAST,37 instead of one hazard ratioPrespecify the horizons. Late horizons rest on the few patients still under follow-up, and censoring must be ignorable.
    Per-protocol effectWhat would have happened if everyone had completed the assigned schedule, rather than the effect of being assigned to itAdherence is not randomized. Patients who stop a course early differ from those who finish it, so this effect needs g-methods and data on the factors that changed during treatment.1
    Extending the result to other patientsThe effect in patients the trial left out, such as older or frailer patients, by combining the trial with registry data. This is called generalizability when the trial population is a subset of the target population, and transportability when the trial population lies at least partly outside it.46The factors that modify the effect and differ between the two populations must be measured in both, and every kind of target patient needs some chance of having been in the trial. Patients excluded outright by the eligibility criteria had no such chance, so an estimate for them is an extrapolation that rests on modeling assumptions.46
    Same tools, different hard parts

    With registry data, the hard part is identification (section 5). With trial data, identification of the intention-to-treat effect comes with the design, apart from censoring. The hard parts become precision, heterogeneity in a sample powered only for the average, adherence, and the gap between trial patients and the patients you treat.

    Bring the argument together

    What can you now say?

    The verdict brings the question, the evidence and the assumptions together. It can report an effect, describe a useful range, narrow the population, or explain which missing information prevents a stronger conclusion.

    For these patients, comparing these strategies, the evidence supports this conclusion, under these assumptions.

    Then say what could change the conclusion and what evidence would be most useful next.

    What belongs in the verdict?

    Keep the target population, treatment contrast, effect scale and follow-up horizon visible. Distinguish sampling uncertainty from uncertainty about assumptions. Explain what the sensitivity analysis did and did not examine.

    A narrower population answers a narrower question. Better prediction does not establish exchangeability. A randomized assignment does not by itself settle missing outcomes or transportability.

    Susan has reached a useful stopping point when she can say which comparison the evidence supports, what remains uncertain, and what she would do next. A narrower defensible claim or a clear reason to collect a missing variable can both be progress. The next study begins with the gap she has made visible.

    Decide what evidence would help next

    10 · The end goal

    Would another study resolve what remains?

    If a further trial could resolve an important remaining gap, the analysis can help specify it. Make a conditional argument: whether a trial is worth considering, for which patients, comparing which fully specified strategies, on which endpoint, and judged by superiority or noninferiority. The target trial of section 2 is already a draft protocol.

    Honest in both directions

    When a randomized trial is feasible, randomization still generally gives more certainty that an effect is causal than an analysis of nonrandomized data. When the identification assumptions are highly implausible and the available data cannot improve them, the causal roadmap's own advice is to collect new data prospectively.10 The analysis informs the decision. Feasibility, cost, equipoise and patient priorities complete it.

    Two lessons from history

    Hormone therapy. Observational studies had suggested that postmenopausal hormone therapy lowered the risk of coronary heart disease. The Women's Health Initiative randomized trial then found a higher risk in women assigned to estrogen plus progestin. When the observational Nurses' Health Study was reanalyzed as an emulation of that trial, comparing women who started therapy with women who did not, its intention-to-treat estimates were similar to the trial's. The remaining discrepancy could be largely explained by differences in time since menopause and in length of follow-up.47 A design-first analysis reproduced the trial, and where the two differed, the reason pointed to the next question.

    Dose escalation in lung cancer. Phase 1 and 2 trials suggested that 74 Gy with concurrent chemotherapy was tolerable in stage III non-small cell lung cancer and implied a survival benefit. The randomized RTOG 0617 trial found the opposite: median overall survival was 28.7 months with 60 Gy and 20.3 months with 74 Gy.48 Encouraging nonrandomized evidence is a reason to test, not a substitute for testing.

    From your results to an argument

    First set your thresholds: the smallest benefit and the smallest harm, on the primary estimand, that would change practice. For a noninferiority question, the harm threshold is the noninferiority margin. Then read the interval and the bias analysis against them.

    If your analysis showsIt argues
    A precise, credible trial already answered the same question in patients like yours, and your emulation reproduces itA duplicate trial of that question is likely a low priority. An imprecise trial, or one with a different endpoint or horizon, does not settle it.
    An interval that includes a meaningful benefit and a meaningful harm, or benefit and no effectDecision-relevant uncertainty. A trial is worth considering, with a sample size planned from a clinically relevant target, not from this interval alone.
    A clear benefit that plausible unmeasured confounding could move across a thresholdA well-designed randomized trial is the recommended way to settle it. Consider one, and name the factor you could not measure.
    A clear harm that plausible unmeasured confounding could move across a thresholdInconclusive. A superiority trial of the new schedule is hard to justify. Examine the harm signal first.
    A clear benefit that survives the bias analysis and reproduces existing trialsA strong hypothesis for a confirmatory or pragmatic trial. Whether one is still needed depends on whether clinicians remain uncertain.
    A meaningful harm possible, meaningful benefit excluded, across the bias rangeA superiority trial is likely a low priority. A noninferiority question would first have to rule out the harm.
    A clear harm that survives the bias analysisA harm signal. Randomizing patients to that schedule may no longer be acceptable. Examine the finding before proposing a trial.
    Effects too small to matter, across the plausible bias range, for a superiority questionA superiority trial on that endpoint is likely a low priority. It does not show the schedules are equivalent for other outcomes.
    Similar outcomes, for a shorter schedule with other advantagesCompatible with noninferiority. Similar observational outcomes alone do not establish it, and a well-designed randomized trial with a prespecified endpoint and margin is the recommended way to confirm it.
    Patient groups that almost always received one scheduleThe estimate applies only where there is overlap (section 5). A trial in the other patients is a separate question.
    An effect that seems to differ between prespecified groupsA hypothesis for stratified randomization or an enriched trial, not a finding.45
    Try it: build the argument from your results

    Use the builder only after the treatment definitions, the study design and the support for treatment and censoring (sections 2 to 5) are credible. If they are not, the next step is to name the evidence gaps or collect better data, not to weigh a precise-looking estimate.

    What is the new schedule meant to achieve?
    Has a randomized trial already compared these strategies?
    Did your emulation reproduce a related trial result?
    Where does the 95% interval lie, against your benefit and harm thresholds? (For noninferiority, the harm threshold is the margin.)
    Across a plausible range of unmeasured confounding, would your reading of the interval above stay the same?
    Does the overlap cover your whole target population?
    Did the effect seem to differ between prespecified groups?
    What the analysis hands to the trial
    • The protocol. Eligibility, fully specified strategies, time zero and follow-up come from the target trial of section 2.
    • The primary endpoint. For example, an RMST difference at a prespecified horizon. Royston and Parmar proposed RMST as an alternative to the hazard ratio for designing as well as analyzing trials with a time-to-event outcome.33 A noninferiority trial also needs a prespecified, clinically justified margin.
    • The sample size. From a clinically relevant target effect or margin, with scenario assumptions for control-arm survival, accrual, censoring and feasibility. Your interval reflects sampling error only, not bias, so it is one input, not the plan.
    • Stratification and adjustment. The strongest prognostic factors, any prespecified effect modifier, and a prespecified covariate-adjusted analysis (section 9).
    • The patients at greatest uncertainty. Groups an earlier trial excluded, and groups without overlap, each as its own stated question.
    • The case itself. The unmeasured factors from section 8 are reasons a trial is needed, and baseline variables it should collect.
    The one-paragraph argument

    “In [population], [strategy B, fully specified] compared with [strategy A] changed 5-year RMST by [estimate] months (95% interval [lower to upper]), against prespecified thresholds of [benefit] and [harm]. Across a plausible range of unmeasured confounding [stated with reasons], the conclusion [does / does not] hold, and the emulation [does / does not] reproduce [existing trial]. A randomized [superiority / noninferiority] trial is therefore [worth considering / a low priority] in [patients], with [endpoint and margin], a sample size planned from [target], stratified by [factors].” The worksheet below ends with this paragraph.

    11 · Your turn

    Turn your question into a one-page plan

    Fill in each section for your own question, then take the plan to your mentor or a statistician before writing any analysis code. The fields start with the running example, with [brackets] where a real protocol must fill in specifics.

    Open the worksheet

    Your plan as text

    
        
    Test yourself

    Thirty multiple-choice questions cover every section of this page, from the kind of question to the case for a new trial. Each answer comes with an explanation and its source. Take the self-test.

    Glossary

    Terms and abbreviations used on this page
    ATE, average treatment effect
    The difference in average outcome if everyone received one treatment rather than the other.
    CATE, conditional average treatment effect
    The average treatment effect among patients with given characteristics. It answers who benefits more or less.
    Backdoor path
    A non-causal path between treatment and outcome that starts with an arrow into the treatment (section 3c).
    Collider
    A variable on a path where two arrowheads meet. It blocks the path. Adjusting for it, or for one of its descendants, can open the path, unless another variable on the path still blocks it (section 3b).
    Confounder
    A common cause of treatment and outcome. Which variables to adjust for is a separate question: check every path and the whole adjustment set, because a variable on a backdoor path can be a collider (section 3c).
    Cross-fitting
    Fitting the nuisance models on some folds of the data and using them only on the other folds (section 7).
    DAG, directed acyclic graph
    A causal diagram: arrows mean “affects”, and no variable can cause itself (section 3).
    Doubly robust
    An estimator that stays consistent if either the outcome model or the propensity model is correct (section 7).
    Estimand
    The exact quantity the analysis targets, stated before any estimator is chosen (section 4).
    Immortal time bias
    Bias that arises when patients receive a treatment because they survived, rather than survive because they received it (section 3f).
    Mediator
    A variable caused by the treatment that in turn affects the outcome. Adjusting for it removes part of the total effect.
    Nuisance model
    A prediction model used inside a causal estimator, for the outcome or for the probability of treatment (section 7).
    Propensity score
    The probability of receiving a treatment given baseline factors.
    RCT, randomized controlled trial
    A trial in which chance decides the treatment, so treatment groups do not differ systematically in other causes of the outcome.
    RMST, restricted mean survival time
    The average survival time up to a chosen horizon, the area under the survival curve up to that time (section 4).
    Target trial
    The randomized trial one would run to answer the question, which an observational analysis then tries to imitate (section 2).
    Time zero
    The moment follow-up starts. Eligibility must be met then, and outcomes count only after it (sections 2 and 3f).
    Overlap / positivity
    For the patients in the target question, the treatment options being compared must be possible given the factors used for adjustment. More patients receiving only one option do not supply the other comparison.
    Transportability
    Learning a causal effect for a target population using evidence from another setting, under explicit assumptions about what differs and what carries over.
    Coverage
    Across repeated studies under specified conditions, the proportion of uncertainty intervals that contain the true target value. A single interval cannot demonstrate its own coverage.

    References and further reading

    1. Hernán MA, Robins JM. Causal Inference: What If. Boca Raton: Chapman & Hall/CRC; 2020. Free online and revised regularly (the August 2026 revision was used for the optional section on causal diagrams). The best single place to go deeper on every topic on this page. https://miguelhernan.org/whatifbook
    2. Austin PC. An introduction to propensity score methods for reducing the effects of confounding in observational studies. Multivariate Behav Res. 2011;46(3):399-424. doi:10.1080/00273171.2011.568786
    3. Bareinboim E, Pearl J. Causal inference and the data-fusion problem. Proc Natl Acad Sci U S A. 2016;113(27):7345-7352. doi:10.1073/pnas.1510507113
    4. Petersen ML, van der Laan MJ. Causal models and learning from data: integrating causal modeling and statistical estimation. Epidemiology. 2014;25(3):418-426. doi:10.1097/EDE.0000000000000078
    5. Hernán MA, Robins JM. Using big data to emulate a target trial when a randomized trial is not available. Am J Epidemiol. 2016;183(8):758-764. doi:10.1093/aje/kwv254
    6. Chernozhukov V, Chetverikov D, Demirer M, et al. Double/debiased machine learning for treatment and structural parameters. Econom J. 2018;21(1):C1-C68. doi:10.1111/ectj.12097
    7. Wager S, Athey S. Estimation and inference of heterogeneous treatment effects using random forests. J Am Stat Assoc. 2018;113(523):1228-1242. doi:10.1080/01621459.2017.1319839
    8. Hernán MA, Hsu J, Healy B. A second chance to get causal inference right: a classification of data science tasks. CHANCE. 2019;32(1):42-49. doi:10.1080/09332480.2019.1579578
    9. Pearl J. The seven tools of causal inference, with reflections on machine learning. Commun ACM. 2019;62(3):54-60. doi:10.1145/3241036 Author's version: https://ftp.cs.ucla.edu/pub/stat_ser/r481.pdf
    10. Dang LE, Gruber S, Lee H, et al. A causal roadmap for generating high-quality real-world evidence. J Clin Transl Sci. 2023;7(1):e212. doi:10.1017/cts.2023.635
    11. Dearnaley D, Syndikus I, Mossop H, et al. Conventional versus hypofractionated high-dose intensity-modulated radiotherapy for prostate cancer: 5-year outcomes of the randomised, non-inferiority, phase 3 CHHiP trial. Lancet Oncol. 2016;17(8):1047-1060. doi:10.1016/S1470-2045(16)30102-4
    12. Hernán MA, Sauer BC, Hernández-Díaz S, Platt R, Shrier I. Specifying a target trial prevents immortal time bias and other self-inflicted injuries in observational analyses. J Clin Epidemiol. 2016;79:70-75. doi:10.1016/j.jclinepi.2016.04.014
    13. Hasan Y, Waller J, Yao K, Chmura SJ, Huo D. Utilization trend and regimens of hypofractionated whole breast radiation therapy in the United States. Breast Cancer Res Treat. 2017;162(2):317-328. doi:10.1007/s10549-017-4120-0
    14. Schisterman EF, Cole SR, Platt RW. Overadjustment bias and unnecessary adjustment in epidemiologic studies. Epidemiology. 2009;20(4):488-495. doi:10.1097/EDE.0b013e3181a819a1
    15. Smit JM, Krijthe JH, Kant WMR, et al. Causal inference using observational intensive care unit data: a scoping review and recommendations for future practice. NPJ Digit Med. 2023;6(1):221. doi:10.1038/s41746-023-00961-1
    16. Shrier I, Platt RW. Reducing bias through directed acyclic graphs. BMC Med Res Methodol. 2008;8:70. doi:10.1186/1471-2288-8-70
    17. Tennant PWG, Murray EJ, Arnold KF, et al. Use of directed acyclic graphs (DAGs) to identify confounders in applied health research: review and recommendations. Int J Epidemiol. 2021;50(2):620-632. doi:10.1093/ije/dyaa213
    18. Williams TC, Bach CC, Matthiesen NB, Henriksen TB, Gagliardi L. Directed acyclic graphs: a tool for causal studies in paediatrics. Pediatr Res. 2018;84(4):487-493. doi:10.1038/s41390-018-0071-3
    19. Cole SR, Platt RW, Schisterman EF, et al. Illustrating bias due to conditioning on a collider. Int J Epidemiol. 2010;39(2):417-420. doi:10.1093/ije/dyp334
    20. Digitale JC, Martin JN, Glymour MM. Tutorial on directed acyclic graphs. J Clin Epidemiol. 2022;142:264-267. doi:10.1016/j.jclinepi.2021.08.001
    21. Lederer DJ, Bell SC, Branson RD, et al. Control of Confounding and Reporting of Results in Causal Inference Studies. Guidance for Authors from Editors of Respiratory, Sleep, and Critical Care Journals. Ann Am Thorac Soc. 2019;16(1):22-28. doi:10.1513/AnnalsATS.201808-564PS
    22. Sakurai A, Kinoshita K, Maeda Y, et al. Confirmed cardiac output on emergency medical services arrival as confounding by indication: an observational study of prehospital airway management in patients with out-of-hospital cardiac arrest. Emerg Med J. 2019;36(7):410-415. doi:10.1136/emermed-2018-208107
    23. Tanaka S, Muramatsu Y, Inoue K. Clarifying Causal Effects of Interest and Underlying Assumptions in Randomized and Nonrandomized Clinical Trials in Oncology Using Directed Acyclic Graphs and Single-World Intervention Graphs. JCO Clin Cancer Inform. 2024;8:e2300262. doi:10.1200/CCI.23.00262
    24. Spigel DR, Faivre-Finn C, Gray JE, et al. Five-Year Survival Outcomes From the PACIFIC Trial: Durvalumab After Chemoradiotherapy in Stage III Non-Small-Cell Lung Cancer. J Clin Oncol. 2022;40(12):1301-1311. doi:10.1200/JCO.21.01308
    25. Stocks T, Häggström C, Fritz J. Collider Bias Is an Insufficient Explanation for the Inverse Obesity Paradox in Prostate Cancer. Cancer Med. 2025;14(8):e70871. doi:10.1002/cam4.70871
    26. Griffith GJ, Morris TT, Tudball MJ, et al. Collider bias undermines our understanding of COVID-19 disease risk and severity. Nat Commun. 2020;11(1):5749. doi:10.1038/s41467-020-19478-2
    27. Yasuda T, Shibata T, Shiraishi A. Re-evaluating the association between alcohol use and in-hospital survival: the role of collider bias. Crit Care. 2025;29(1):203. doi:10.1186/s13054-025-05442-3
    28. Hernán MA, Monge S. Selection bias due to conditioning on a collider. BMJ. 2023;381:p1135. doi:10.1136/bmj.p1135
    29. Robinson WR, Furberg H, Banack HR. Selection bias: a missing factor in the obesity paradox debate. Obesity (Silver Spring). 2014;22(3):625. doi:10.1002/oby.20666
    30. Yates TA, Parks T, Dodd PJ. Quantifying Potential Immortal Time Bias in Observational Studies in Acute Severe Infection. Open Forum Infect Dis. 2025;12(4):ofaf173. doi:10.1093/ofid/ofaf173
    31. Tsuruda KM, Hektoen HH, Reis Costa D, Andreassen BK. Immortal time bias in survival outcomes when comparing treatment with chemotherapy versus immunochemotherapy for non-small cell lung cancer. Transl Lung Cancer Res. 2025;14(1):300-302. doi:10.21037/tlcr-24-1002
    32. Textor J, van der Zander B, Gilthorpe MS, Liśkiewicz M, Ellison GT. Robust causal inference using directed acyclic graphs: the R package 'dagitty'. Int J Epidemiol. 2016;45(6):1887-1894. doi:10.1093/ije/dyw341
    33. Royston P, Parmar MKB. Restricted mean survival time: an alternative to the hazard ratio for the design and analysis of randomized trials with a time-to-event outcome. BMC Med Res Methodol. 2013;13:152. doi:10.1186/1471-2288-13-152
    34. Hernán MA. The hazards of hazard ratios. Epidemiology. 2010;21(1):13-15. doi:10.1097/EDE.0b013e3181c1ea43
    35. Cui Y, Kosorok MR, Sverdrup E, Wager S, Zhu R. Estimating heterogeneous treatment effects with right-censored data via causal survival forests. J R Stat Soc Series B Stat Methodol. 2023;85(2):179-211. doi:10.1093/jrsssb/qkac001
    36. Díaz I, Williams N, Hoffman KL, Schenck EJ. Nonparametric causal effects based on longitudinal modified treatment policies. J Am Stat Assoc. 2023;118(542):846-857. doi:10.1080/01621459.2021.1955691
    37. Yang E, Vasishtha R, Hope A, Kachnic LA, Wang E, Shuryak I. Estimating continuous chemotherapy effect trajectories in head and neck squamous cell carcinoma. In: Proceedings of the 17th ACM International Conference on Bioinformatics, Computational Biology and Health Informatics (BCB ’26). ACM; 2026:1-6. This paper introduces CAST. doi:10.1145/3807503.3819798
    38. VanderWeele TJ, Ding P. Sensitivity analysis in observational research: introducing the E-value. Ann Intern Med. 2017;167(4):268-274. doi:10.7326/M16-2607
    39. Cinelli C, Hazlett C. Making sense of sensitivity: extending omitted variable bias. J R Stat Soc Series B Stat Methodol. 2020;82(1):39-67. doi:10.1111/rssb.12348
    40. Sterne JA, White IR, Carlin JB, et al. Multiple imputation for missing data in epidemiological and clinical research: potential and pitfalls. BMJ. 2009;338:b2393. doi:10.1136/bmj.b2393
    41. Kapoor S, Narayanan A. Leakage and the reproducibility crisis in machine-learning-based science. Patterns (N Y). 2023;4(9):100804. doi:10.1016/j.patter.2023.100804
    42. Wood AM, Royston P, White IR. The estimation and use of predictions for the assessment of model performance using large samples with multiply imputed data. Biom J. 2015;57(4):614-632. doi:10.1002/bimj.201400004
    43. Morris TP, White IR, Crowther MJ. Using simulation studies to evaluate statistical methods. Stat Med. 2019;38(11):2074-2102. doi:10.1002/sim.8086
    44. US Food and Drug Administration. Adjusting for Covariates in Randomized Clinical Trials for Drugs and Biological Products: Guidance for Industry. Silver Spring, MD: FDA; May 2023. https://www.fda.gov/media/148910/download
    45. Kent DM, Paulus JK, van Klaveren D, et al. The Predictive Approaches to Treatment effect Heterogeneity (PATH) Statement. Ann Intern Med. 2020;172(1):35-45. doi:10.7326/M18-3667
    46. Degtiar I, Rose S. A review of generalizability and transportability. Annu Rev Stat Appl. 2023;10:501-524. doi:10.1146/annurev-statistics-042522-103837. Open preprint: arXiv:2102.11904
    47. Hernán MA, Alonso A, Logan R, et al. Observational studies analyzed like randomized experiments: an application to postmenopausal hormone therapy and coronary heart disease. Epidemiology. 2008;19(6):766-779. doi:10.1097/EDE.0b013e3181875e61
    48. Bradley JD, Paulus R, Komaki R, et al. Standard-dose versus high-dose conformal radiotherapy with concurrent and consolidation carboplatin plus paclitaxel with or without cetuximab for patients with stage IIIA or IIIB non-small-cell lung cancer (RTOG 0617): a randomised, two-by-two factorial phase 3 study. Lancet Oncol. 2015;16(2):187-199. doi:10.1016/S1470-2045(14)71207-0
    49. Senn S. Statistical pitfalls of personalized medicine. Nature. 2018;563:619-621. doi:10.1038/d41586-018-07535-2
    50. Dang LE, Balzer LB. Start with the Target Trial Protocol, Then Follow the Roadmap for Causal Inference. Epidemiology. 2023;34(5):614–618. doi:10.1097/EDE.0000000000001636.