Scalable Counterfactual Risk Estimation for Rare Events in Longitudinal Data

Xiaohui Yin, Avijit Mitra, Ying Zhou, Kun Chen, Hong Yu
6/1/2026
stat.MEcs.LG

No confident code implementation found for this paper.

Abstract

Estimating the causal effect of time-varying treatments on survival outcomes in large observational studies is computationally demanding, particularly when outcomes are rare. While g-formula-based methods such as the iterative conditional expectation (ICE) estimator provide a principled framework for longitudinal causal inference, they become computationally expensive, especially when bootstrap-based variance estimation is required.

Show full abstract

In addition, outcome rarity at each time point induces severe class imbalance, leading to instability and convergence issues in logistic regression and related models. To address these challenges, we propose a principled subsampling and reweighting strategy for longitudinal survival data that can be applied to a range of existing causal effect estimators in this setting, including the ICE estimator. The proposed method substantially reduces computational burden while preserving consistency and improving estimation stability in rare-outcome settings. We evaluate the method through simulations and validate it using a large-scale EHR cohort study on social and behavioral determinants of health (SBDH) and suicide risk, demonstrating its effectiveness for modeling rare outcomes in longitudinal data.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yin2026scalable,
  title  = {Scalable Counterfactual Risk Estimation for Rare Events in Longitudinal Data},
  author = {Xiaohui Yin and Avijit Mitra and Ying Zhou and Kun Chen and Hong Yu},
  year   = {2026},
  eprint = {2606.01539},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.01539v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.01539.svg)](https://codeofpaper.com/paper/2606.01539)

Discussion