CausalState - Causal Inference in a Longitudinal Transitioning State
Environment
Implements Sequential Doubly Robust (SDR) and
infinite-dimensional Targeted Maximum Likelihood (iTMLE)
estimators for longitudinal modified treatment policies in
settings with transitioning states, such as ICU, ward, or
emergency department care episodes. Treatment is permitted in
active states and becomes structurally inapplicable after a
state transition (e.g. discharge or death). Supports asymmetric
g- and Q-model regularisation, k-fold cross-fitting, and
pluggable SuperLearner ensembles. Includes specialised
SuperLearner wrappers (SL.tgt.* and SL.tmle_* families) for the
iTMLE targeting step, which pass the logit offset as a
covariate column to preserve correct subsetting during
SuperLearner cross-validation. Methods based on Diaz et al.
(2021) <doi:10.1080/01621459.2021.1955691> and Luedtke et al.
(2017) <doi:10.48550/arXiv.1705.02459>.