A Statistical Framework for Understanding Causal Effects that Vary by Treatment Initiation Time in EHR-based Studies
arXiv:2512.19553
Abstract
Standard practice in electronic health record (EHR)-based studies evaluating the comparative effectiveness of bariatric surgery relative to no surgery is to estimate and report a constant treatment effect across calendar time. However, real-world treatment strategies can evolve, particularly when comparators include standard of care or surgical procedures where techniques may improve, making it clinically important to ascertain whether efficacy of bariatric surgery has changed over time. Efforts to determine whether treatment efficacy itself is evolving are complicated by changing patient populations, with potential covariate shift in key effect modifiers. Through a comprehensive analysis of EHR data from Kaiser Permanente comparing two bariatric surgical procedures to standard of care, we develop a statistical framework to estimate calendar time-specific average treatment effects and describe both how and why effects vary across treatment initiation time in EHR-based studies. Our approach projects doubly robust, time-specific treatment effect estimates onto candidate marginal structural models and uses model selection to best describe how effects vary by calendar time. We further introduce a novel summary metric, based on standardization, to quantify the degree to which observed effect changes may be attributed to covariate shift in the population receiving treatment, as opposed to changes in underlying treatment efficacy.