About this sample code
This method estimates the causal effect of micro-randomized interventions on a distal outcome. For example, using HeartSteps V1 data, we found that activity suggestions delivered early in the study (e.g., Week 1) had a stronger effect on an end-of-study activity level than those delivered later (e.g., Week 4).
Related References
Qian, T. (2025). Distal causal excursion effects: Modeling long-term effects of time-varying treatments in micro-randomized trials (Preprint). arXiv. https://arxiv.org/abs/2502.13500