Skip to content
StatsOtter A workspace for causal thinking
Method library WORKFLOW / 007
Research workflow/5 steps

Causal forest with time-to-event data (survival)

Source grf — Athey, Tibshirani & Wager
01
The method workspace

Follow the analysis.

Select a node to explore the method

Method mapInput → 5 steps → output
START WITHInput data
ARRIVE ATResults
Read step 01
Inside the methodReasoning, equations & implementation
Step 1 of 5
01
Diagnostic / pre-tests

[GRF] Survival forest

A pre-flight check — run this before trusting any estimate downstream.

What happens here

Inspect the conditional censoring/survival curves; pick a horizon h with enough events.

Formula
\hat S(t\mid x)=\mathbb{P}(T>t\mid X=x)
The estimator

Survival forest — Non-parametric conditional survival function S(t | X) under right-censoring.

Reads fromNot specified Feeds into#2
Key code
sf <- survival_forest(X, Y, D)
predict(sf)$predictions             # conditional survival curve
Discussion on this step (0)
StatsOtterDiscussion starter · Editorial note

Before using this step, make its assumptions and its output explicit. A useful peer note explains what you would check, what could go wrong, or what would change your interpretation.

Questions to explore
  1. Which assumption matters most here, and what evidence could challenge it?
  2. What would you check before passing this output to the next step?

Peer discussion

  • Bring your experience, a question, or a different perspective.
02
Data contract

Inputs & data

Right-censored survival time Y, event indicator D, treatment W, covariates X.

Show data format & exampleHide example

Format — one row per unit. Covariates X, binary treatment W, a (possibly censored) time Y, and an event indicator D (1 = event, 0 = censored).

  X1    X2   W     Y     D
 0.4  -1.1  1   12.3   1
-0.1   0.6  0   30.0   0   # censored
 1.2   0.3  1    8.7   1
03
Read the evidence

Results & interpretation

4 figures Workflow discussion 2
01FigureTrue vs observed event times — censoring shifts the distribution you actually get to see.
02FigureA right-censoring timeline: some units are only observed up to a cutoff, never reaching the event.
03FigureEvent-time density truncated at the analysis horizon h, the scale the RMST effect is defined on.
04FigureTOC with units ranked by their estimated survival benefit.

Figures reproduced from grf — Athey, Tibshirani & Wager — unofficial community showcase; all credit to the original authors.

Context & interpretation

The GRF survival tutorial. Model censoring first, estimate CATE on the RMST scale, then aggregate and validate. Unofficial summary.

Peer notes

Discuss the workflow (2)

  • 5

    Modelling censoring as step 1 instead of an afterthought is exactly right. So many survival analyses get this backwards.

  • 2

    The horizon-sensitivity caveat in the report step is a nice touch. RMST is horizon-dependent and people forget.

IN THE MARGINS

Peer discussion