@misc{doubleml,
title = {DoubleML},
author = {Bach and Chernozhukov and Kurz and Spindler},
howpublished = {\url{https://docs.doubleml.org/}},
note = {Software / documentation}
}Beyond the average: how 401(k) eligibility shifts net financial assets across the whole wealth distribution, estimated orthogonally.
Input · what goes in
Outcome Y (net assets), binary treatment D (eligibility), covariates X — the SIPP 401(k) sample.
Show data format & exampleHide example
Format — one row per household: net_tfa, e401 ∈ {0,1}, covariates X.
net_tfa e401 age inc educ
12000 1 41 38k 13
-400 0 53 21k 11
Pipeline · the recipe ⑂ has parallel branches
↑ Click any step in the diagram to read its logic, code, assumptions & discussion.
Build DoubleMLData (net_tfa, e401, X)
Data preparation — shapes the raw inputs into what the estimator expects.
Declare the outcome, the eligibility treatment, and covariates.
dml_data = dml.DoubleMLData(df, 'net_tfa', 'e401', x_cols=X)
- No comments on this step yet — be the first.
Log in to comment on this step.
Estimate QTEs across the distribution
The core estimate — where the causal quantity itself is computed.
A grid of quantiles, each a debiased potential-quantile contrast.
qte = dml.DoubleMLQTE(dml_data, ml_g, ml_m, quantiles=np.arange(.1,.95,.05)).fit()
- No comments on this step yet — be the first.
Log in to comment on this step.
Simultaneous confidence bands
Uncertainty quantification — standard errors, intervals, and aggregation.
Bootstrap joint bands so the whole QTE curve is covered at once.
qte.bootstrap(); qte.confint(joint=True)
- No comments on this step yet — be the first.
Log in to comment on this step.
Plot the QTE curve
Reporting — turn the numbers into a figure or table a reader can act on.
Effect against quantile τ — where in the distribution the policy bites.
# QTE vs quantile, with joint bands
- No comments on this step yet — be the first.
Log in to comment on this step.
Output · what you get 4 figures
Figures reproduced from DoubleML — Bach, Chernozhukov, Kurz & Spindler — unofficial community showcase; all credit to the original authors.
⚠️ 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.
Beyond the average: how 401(k) eligibility shifts net financial assets across the whole wealth distribution, estimated orthogonally.
Discussion (0)
Log in to join the discussion.