statspai.dtr¶
dtr ¶
Dynamic Treatment Regimes (DTR).
Estimates optimal sequential treatment rules when treatments are assigned over multiple time periods.
Functions:
| Name | Description |
|---|---|
- **G-estimation** : Structural nested mean model for optimal DTR |
(Robins 1986, 2004). |
References
Robins, J. M. (2004). Optimal Structural Nested Models for Optimal Sequential Decisions. In Proceedings of the Second Seattle Symposium in Biostatistics, 189-326. [@robins2004optimal]
Murphy, S. A. (2003). Optimal Dynamic Treatment Regimes. JRSS-B, 65(2), 331-355. [@murphy2003optimal]
GEstimation ¶
G-estimation for dynamic treatment regimes via SNMM.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
DataFrame
|
|
required |
y
|
str
|
|
required |
treatments
|
list of str
|
|
required |
covariates_by_stage
|
list of list of str
|
|
required |
propensity_covariates
|
list of list of str
|
|
None
|
alpha
|
float
|
|
0.05
|
n_bootstrap
|
int
|
|
500
|
random_state
|
int
|
|
42
|