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

Dose–response with average potential outcomes (DoubleML APO)

Source DoubleML — Bach, Chernozhukov, Kurz & Spindler
01
The method workspace

Follow the analysis.

Select a node to explore the method

Method mapInput → 4 steps → output
START WITHInput data
ARRIVE ATResults
Read step 01
Inside the methodReasoning, equations & implementation
Step 1 of 4
01
Data prep

Declare the multi-valued treatment

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

What happens here

Set up DoubleMLData with the dose as the treatment.

Reads fromNot specified Feeds intoNot specified
Key code
dml_data = dml.DoubleMLData(df, y_col='y', d_cols='d', x_cols=X)
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

Outcome Y, a multi-valued / continuous treatment D (the dose), and covariates X.

Show data format & exampleHide example

Format — one row per unit: outcome y, dose d, covariates X.

  y    d    x1    x2
 2.1   0    0.4  -1.1
 3.4   2   -0.1   0.6
 1.8   1    1.2   0.3
03
Read the evidence

Results & interpretation

4 figures Workflow discussion 0
01FigureThe data: outcome against treatment dose before adjustment.
02FigureAverage potential outcome E[Y(d)] estimated at each treatment level.
03FigureCausal contrasts between dose levels, with confidence intervals.
04FigureThe estimated dose–response curve across the treatment range.

Figures reproduced from DoubleML — Bach, Chernozhukov, Kurz & Spindler — unofficial community showcase; all credit to the original authors.

Context & interpretation

⚠️ Unofficial community showcase of a DoubleML example. Not affiliated with the authors; figures are from the public documentation. All credit to Bach, Chernozhukov, Kurz & Spindler.

For a multi-valued or continuous treatment: estimate E[Y(d)] at each dose and the contrasts between them, all cross-fitted.

Peer notes

Discuss the workflow (0)

  • No comments yet — start the conversation.
IN THE MARGINS

Peer discussion