Dear Statalist users,
I am pleased to announce causalspline, now available from SSC.
The command estimates causal dose–response functions for continuous treatments under unconfoundedness, using restricted cubic splines to flexibly capture nonlinear relationships (e.g., thresholds, diminishing returns, nonmonotonic patterns).
It implements three approaches:
Installation
ssc install causalspline
Example
cs_simulate 500, dgp(threshold) clear
causalspline, outcome(Y) treatment(T) confounders(X1 X2 X3) method(dr)
cs_plot
The command is implemented as an r-class routine.
More details:
https://EconPapers.repec.org/RePEc:boc:bocode:s459644
Comments welcome.
Kind regards,
Subir Hait
Michigan State University
I am pleased to announce causalspline, now available from SSC.
The command estimates causal dose–response functions for continuous treatments under unconfoundedness, using restricted cubic splines to flexibly capture nonlinear relationships (e.g., thresholds, diminishing returns, nonmonotonic patterns).
It implements three approaches:
- IPW (generalized propensity score)
- G-computation
- Doubly robust estimation
Installation
ssc install causalspline
Example
cs_simulate 500, dgp(threshold) clear
causalspline, outcome(Y) treatment(T) confounders(X1 X2 X3) method(dr)
cs_plot
The command is implemented as an r-class routine.
More details:
https://EconPapers.repec.org/RePEc:boc:bocode:s459644
Comments welcome.
Kind regards,
Subir Hait
Michigan State University

Comment