Abstract
The gold standard for the identification of causal effects are randomized controlled trials (RCT), but RCTs may not always be feasible to conduct. When treatments depend on a threshold however, such as the blood sugar threshold for diabetes diagnosis, we can still sometimes estimate causal effects with regression discontinuities (RDs). RDs are valid when units just above and below the threshold have the same distribution of covariates and thus no confounding in the presence of noise, establishing an as-if randomization. In practice however, implementing RD studies can be difficult as identifying treatment thresholds require considerable domain expertise -- furthermore, the thresholds may differ across subgroups (e.g., the blood sugar threshold for diabetes may differ across demographics), and ignoring these differences can lower statistical power. Finding the thresholds and to whom they apply is an important problem currently solved manually by domain experts, and data-driven approaches are needed when domain expertise is not sufficient. Here, we introduce Regression Discontinuity SubGroup Discovery (RDSGD), a machine-learning method that identifies statistically powerful and interpretable subgroups for RD thresholds. Using a medical claims dataset with over 60 million patients, we apply RDSGD to multiple clinical contexts and identify subgroups with increased compliance to treatment assignment thresholds. As treatment thresholds matter for many diseases and policy decisions, RDSGD can be a powerful tool for discovering new avenues for causal estimation.
Introduction
In an ideal world, Randomized Controlled Trials (RCTs) would be used for every causal question. However, RCTs are often prohibitively expensive, unethical, or slow. Researchers instead turn to Regression Discontinuity (RD) designs—a type of "quasi-experiment" where a strict threshold (like a test score or a blood sugar level) determines treatment. People just above and just below the line are essentially randomized by "noise," allowing for a clean causal comparison.
Despite their utility, RD studies face two major hurdles: manual discovery and population heterogeneity. Finding these thresholds usually requires deep domain expertise, and even when a threshold is known, low compliance in the general population can lead to underpowered studies. This paper introduces RDSGD (Regression Discontinuity SubGroup Discovery), a machine learning framework that automatically identifies subgroups within massive datasets where causal effects can be reliably estimated by optimizing for statistical power rather than just raw compliance.
Methods
RDSGD treats the search for RD opportunities as a machine learning task by reframing the "Treatment Assignment Uptake" (TAU)—the jump in treatment probability at a threshold—as a Conditional Average Treatment Effect (CATE) problem. Instead of predicting an outcome, the model predicts the probability of complying with the threshold.
The core innovation lies in optimizing for effective sample size ($\eta$), which balances the strength of the "jump" at the threshold with the number of people in the subgroup. RDSGD uses tree-based models to partition the data into interpretable subgroups based on covariates like age, gender, or income. To prevent "p-hacking," the method uses sample splitting: discovering subgroups on one half of the data and validating the statistical significance on the other half using influence functions.
Results
The researchers evaluated RDSGD using synthetic data and Optum’s Clinformatics® Data Mart, a medical claims database containing de-identified data for over 60 million patients.
Key results across clinical contexts include:
- Colon Cancer Screening: The model discovered a subgroup of patients with encounter dates after May 2014, aligning with an update in US Preventive Services Task Force guidelines. This led to a much cleaner jump ($\tau$) at the age 50 threshold and a significantly improved effective sample size ($\eta$).
- Breast Cancer Screening: RDSGD identified that the age 40 screening threshold is primarily driven by women, and focusing on this subgroup doubled the effective sample size (from 471.7 to 1074.6), increasing the power to detect screening effects.
- Diabetes Diagnosis: The method successfully identified the 6.5% A1C threshold and found a subgroup with higher compliance by excluding patients from before the 2010 guideline change, increasing the effective sample size from 1212.1 to 1533.6.
Discussion and Limitations
RDSGD serves as a discovery tool for causal inference opportunities; it does not calculate the final treatment effect, which still requires a standard RD analysis. A key assumption is the exclusion restriction—that the threshold only affects the outcome through the treatment. If a threshold triggers multiple changes (e.g., age 65 triggering both Medicare and retirement), the causal claim may be confounded. Additionally, the tree-based search is "greedy" and may prioritize simpler, more interpretable rules over the absolute optimal subgroup.
Future work includes applying this framework to "Regression Kink" designs and expanding into fields such as economics and education policy. By uncovering hidden quasi-experiments in observational data, RDSGD provides a powerful tool for discovering new avenues for causal estimation.
Summary updated