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

An introduction to GRF (getting started)

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
Data prep

Assemble X, W, Y; check overlap

Data preparation — shapes the raw inputs into what the estimator expects.

What happens here

One row per unit; numeric design matrix X, treatment W, outcome Y. Eyeball propensity overlap.

Reads fromNot specified Feeds into#2#3#4
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

2,000 obs, 10 covariates X, a binary treatment W, continuous outcome Y.

Show data format & exampleHide example

Format — one row per unit. A covariate matrix X (numeric), a binary treatment W ∈ {0,1}, and an outcome Y.

  X1     X2    X3    W    Y
 0.42  -1.1   0     1   3.10
-0.07   0.6   1     0   1.85
 1.20   0.3   0     1   4.02
03
Read the evidence

Results & interpretation

4 figures Workflow discussion 2
01FigureOut-of-bag CATE estimates across 2,000 simulated units.
02FigurePredicted τ̂(x) against the true effect — the forest recovers the underlying signal.
03FigureCATE estimates with 95% confidence bands along a single covariate.
04FigureA RATE / TOC curve summarising how much heterogeneity the forest found.

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

Context & interpretation

The GRF 'introduction' vignette, distilled to a teaching recipe. Shows the shared API across forest types and where OOB predictions and variable importance come from. Unofficial summary.

Peer notes

Discuss the workflow (2)

  • 6

    Perfect first-contact recipe. Showing the identical call shape across regression/quantile/causal forests is the fastest way to 'get' the package.

  • 2

    Would hand this to any new grad student. Clean.

IN THE MARGINS

Peer discussion