A formal approach to variable selection in difference-in-differences
Daniela Rodrigues, Laura A. Hatfield · 2026
Read A formal approach to variable selection in difference-in-differences by Daniela Rodrigues, Laura A. Hatfield (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-01114.txt.
Introduction
Daniela Rodrigues and Laura A. Hatfield give a formal approach to variable selection in difference-in-differences studies, a common method for gauging policy effects. The method rests mainly on a same-trends assumption for control-group outcomes, often relaxed by assuming trends move together only within groups sharing measured values. Choosing which variables to include there is often ad hoc.
Using graphical criteria, the authors show parallel trends is rarely justified without conditioning, and unconditional and conditional versions can conflict. Even a time-invariant covariate with a stable effect can be a useful grouping variable. They extend the framework to multiple periods, treatment-confounder feedback, and estimation, arguing many difficulties stem from misalignment between the estimator's adjustment set and the set the method requires.
Catalog record
| CREATOR | Daniela Rodrigues, Laura A. Hatfield |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 94 KB |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2605.01114
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
A formal approach to variable selection in difference-in-differences Thanks: We thank Katherine Ianni, Alyssa Chen, Chi Zhang, Karim Chalak, Carlos Cinelli, Elias Bareinboim, Nima Hejazi and participants of the 2025 Society of Epidemiology Research (SER) conference, the 2025 International Conference on Health Policy Statistics (ICHPS) and the Health Economics seminar at Harvard’s Department of Health Care Policy for helpful discussions. This project was funded under grant number R01HS028985 from the Agency for Healthcare Research and Quality (AHRQ), U.S. Department of Health and Human Services (HHS). The authors are solely responsible for this document’s contents, findings, and conclusions, which do not necessarily represent the views of AHRQ. Daniela Rodrigues, Laura A. Hatfield Abstract Abstract Difference-in-differences (DiD) identification relies mainly on a parallel trends assumption about untreated potential outcomes. Researchers often relax this assumption by assuming conditional parallel trends within units with the same covariate values. However, the process of selecting which covariates to include in this assumption is often ad hoc . We propose a formal approach to select the variables that support conditional parallel trends based on graphical criteria. We show that the parallel trends assumption is rarely justified without conditioning on covariates, and that unconditional and conditional parallel trends can conflict with one another. We also demonstrate that a time-invariant covariate with a time-invariant effect on the outcome, which might not ordinarily be considered a confounder in DiD, may be a useful conditioning variable. We clarify that adjustment for a post-treatment covariate depends on what causes that covariate to change. Extending our framework to multiple time periods, we distinguish between treatment type and rollout strategy and examine the problem of treatment-confounder feedback. On the estimation side, we argue that the difficulty of incorporating covariates in DiD, often framed as an estimator problem, is more accurately understood as a misalignment between the adjustment set used by the estimator and the adjustment set required for identification. This misalignment affects several popular estimation procedures, and resolving it requires not a change of estimator, but a change in how covariates enter the estimation procedure. We show how to achieve this alignment for all estimators we evaluate. 1 Introduction DiD ( DiD ) is a popular identification strategy that relies mainly on an assumption that the outcome evolution of the untreated group can stand in for the counterfactual outcome evolution of the treated group had it not been treated. This assumption is commonly described as “parallel trends” in untreated potential outcomes. Although other assumptions are needed for DiD identification, including no interference, consistency, and no anticipation [ 22 , 32 ] , the parallel trends assumption receives particular scrutiny. For instance, researchers frequently assess its plausibility by testing whether outcome trends are parallel across treated and control groups prior to treatment [ 2 ] . Alternatively, we may assume parallel trends holds only for units with the same covariate values, i.e., conditional parallel trends. A natural question then arises: how should one select the variables on which to condition? In practice, variables are reported with little justification and the selection often includes every measured variable, i.e, a “kitchen sink” approach. In studies that give more attention to variable selection, variables may be assessed in isolation, considering whether each evolves differently across groups or has a time-varying relationship to the outcome [ 1 , 42 ] . These approaches resemble historical practice in cross-sectional studies that assume conditional exchangeability (also known as no unmeasured confounding). In this context, each variable was evaluated as a potential confounder by asking whether it was related to both treatment assignment and the outcome. More recent work has refined the process, for instance, using DAG and Pearl’s backdoor criterion [ 26 , 25 ] to select a minimally sufficient set of variables that blocks all backdoor (non-causal) paths between the treatment and outcome [ 19 , 38 , 9 ] . Such a set avoids the pitfalls of too many control variables, such as limited positivity [ 13 ] , collider bias [ 9 ] and M-bias [ 12 ] . In this work, we extend these ideas to DiD by proposing a graphical approach to selecting variables that support conditional parallel trends. We examine the relationship between unconditional and conditional parallel trends, consider the role of time-invariant and time-varying covariates in identification, including post-treatment covariate values, and extend the framework to settings with multiple time periods. We also evaluate how several popular DiD estimators handle adjustment variables and propose ways to better align estimation with identification. The remainder of this article is organized as follows. Section 2 reviews the related literature and situates our specific contributions within it. Section 3 establishes the equivalence between parallel trends and equi-confounding, which enables us to represent this key identifying assumption in a causal diagram in Section 4 , where we show DiD identification using graphical criteria. In Section 5 , we extend the framework to scenarios with covariates and multiple time periods. Section 6 compares popular estimation methods and examines how they handle covariates, including the modifications needed to achieve alignment with identification requirements. Section 7 presents the results of a simulation study, and Section 8 concludes with a discussion. 2 Related literature We build on recent work that uses causal diagrams for DiD identification. Chalak introduced the concept of “equi-confounding”, in which the same unobserved confounder affects equally (e.g., proportionally) one or more observed variables, including covariates and outcome variables [ 7 ] . Zhang et al. later noted that DiD is a special case of equi-confounding where two outcome variables (i.e., the pre- and post-treatment) are equally affected by the unobserved confounder [ 43 ] . Using the same assumption of equi-confounding, Sofer et al. showed that DiD can be viewed as a negative outcome control strategy in which the pre-treatment outcome is the negative control affected by the same confounding as the post-treatment outcome [ 36 ] . Those authors distinguished between additive equi-confounding and two alternatives, quantile-quantile and distributional equi-confounding, which are useful when pre- and post-treatment outcomes are measured on different scales. Since this situation is not typical in DiD , we assume additivity and omit this qualifier from the term equi-confounding hereafter. Without using the term equi-confounding, other authors have independently noted the need for the same unobserved confounding to affect pre- and post-treatment outcome variables in DiD [ 40 , 21 , 28 ] . Weber et al. highlighted this requirement while discussing the trade-offs between parallel trends and exchangeability [ 40 ] . Kim and Steiner showed that DiD identification relies on “offsetting rather than blocking” backdoor paths, such that equality of the confounding in the pre- and post-treatment periods allows the bias to cancel [ 21 ] . Renson et al. formalized the structural conditions for unconditional parallel trends using SWIG , further clarifying the graphical basis of DiD identification [ 28 ] . A related strand of work has considered conditioning on covariates in DiD . One of the earliest estimation procedures designed to handle time-varying confounding in DiD was proposed by Stuart et al., who combined propensity score weighting with a subsequent TWFE ( TWFE ) weighted regression. More recently, Ghanem et al. explored mechanisms of selection into treatment under which