Covariate-Balanced Weighted Stacked Difference-in-Differences
Vadim Ustyuzhanin · 2026
Read Covariate-Balanced Weighted Stacked Difference-in-Differences by Vadim Ustyuzhanin (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-2604-02293.txt.
Introduction
Ustyuzhanin proposes a covariate balanced stacked difference in differences method for settings where untreated trends run parallel only within groups. Matching or weighting fixes treated control balance within each stack, while corrective stacked weights recover the target aggregate effect. The logic extends from absorbing treatment to repeated treatments and episodes under finite memory. Tests on Trounstine and Acemoglu data show the method bridges stacked DID and design based panel matching.
Catalog record
| CREATOR | Vadim Ustyuzhanin |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 46091 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2604.02293
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Covariate-Balanced Weighted Stacked Difference-in-Differences Vadim Ustyuzhanin Abstract This paper proposes Covariate-Balanced Weighted Stacked Difference-in-Differences (CBWSDID), a design-based extension of weighted stacked DID for settings in which untreated trends may be conditionally rather than unconditionally parallel. The estimator separates within-subexperiment design adjustment from across-subexperiment aggregation: matching or weighting improves treated-control comparability within each stacked subexperiment, while the corrective stacked weights of Wing et al. recover the target aggregate ATT. I show that the same logic extends from absorbing treatment to repeated 0 → 1 0\to 1 and 1 → 0 1\to 0 episodes under a finite-memory assumption. The paper develops the identifying framework, discusses inference, presents simulation evidence, and illustrates the estimator in applications based on Trounstine (2020) and Acemoglu et al. (2019). Across these examples, CBWSDID serves as a bridge between weighted stacked DID and design-based panel matching. The accompanying R package cbwsdid is available on GitHub . 1 Introduction Stacked difference-in-differences has become a widely used way to study dynamic treatment effects in staggered-adoption settings. Its appeal is clear: by reorganizing the data into cohort-specific sub-experiments, it avoids many of the comparison problems that arise in conventional TWFE event-study regressions. Yet stacked DID still leaves two distinct design problems. First, the final estimator must aggregate treated and control observations across sub-experiments in a way that targets a well-defined causal parameter. Wing et al. ( [ ref-wing2024 ] ) show that ordinary stacked DID fails on this margin and propose corrective stacked weights that recover the trimmed aggregate ATT. Second, even within a given sub-experiment, treated and control units may differ substantially on lagged outcomes or other pre-treatment characteristics. Correct aggregation across sub-experiments does not by itself guarantee credible treated-control comparisons within them. This paper proposes Covariate-Balanced Weighted Stacked DID (CBWSDID), which separates these two tasks. In the first stage, matching or weighting is used to improve comparability within each stacked sub-experiment. In the second stage, the corrective weighting logic of Wing et al. ( [ ref-wing2024 ] ) is applied to recover the desired aggregate ATT. The key point is that these steps can be combined without treating matching and weighting as separate estimators. Both are represented through nonnegative first-stage design weights, which makes it possible to refine the donor pool within each sub-experiment while preserving the target estimand defined by weighted stacked DID. The paper makes three contributions. First, it provides a unified stacked DID framework that accommodates matching-based and weighting-based refinement within the same estimator. Second, it extends this logic beyond absorbing treatment to repeated 0\to 1 episodes under a finite-memory assumption and, by symmetry, to 1\to 0 episodes as well. This creates a bridge between weighted stacked DID and episode-based designs such as Imai et al. ( [ ref-imai2023 ] ). Third, it develops the corresponding R package cbwsdid (available on GitHub ) and illustrates the estimator in several demanding settings. The rest of the paper proceeds as follows. I begin by restating the absorbing-treatment setup and the logic of weighted stacked DID. I then introduce CBWSDID and show how matching and weighting refinements can be embedded in the stacked design through first-stage design weights. Next, I extend the estimator to repeated switch-on and switch-off episodes. The empirical performance of the estimator is then illustrated in a simulation design, in a stress-test application based on Trounstine ( [ ref-trounstine2020 ] ), and in a repeated-treatment application on democracy and growth based on Acemoglu et al. ( [ ref-acemoglu2019 ] ). 2 Setup 2.1 Staggered adoption and stacked DID Let s=1,\dots,S index groups and t=1,\dots,T index calendar time. Treatment is staggered, so each group has a first treatment time A_{s}\in\{1,\dots,T,\infty\} where A_{s}=\infty denotes never treated. Let Y_{s,t}(0) denote the untreated potential outcome for group s at time t , and let Y_{s,t}(a) denote the potential outcome at time t if group s first adopts treatment in period a and remains treated thereafter. For a cohort first treated in period a and an event time e=t-a , define the group-time average treatment effect on the treated as ATT(a,a+e)=\mathbb{E}\left[Y_{s,a+e}(a)-Y_{s,a+e}(0)\mid A_{s}=a\right] To estimate this effect, the stacked DID estimator proposes the following logic. Fix a uniform event window \kappa=(\kappa_{pre},\kappa_{post}) where \kappa_{pre} and \kappa_{post} are desired length of the pre- and post-treatment period. For each sub-experiment a , define the treated and the clean-control sets as \mathcal{D}_{a}=\{s:A_{s}=a\}\qquad\mathcal{C}_{a}=\{s:A_{s}>a+\kappa_{post}\} The clean-control definition in that case is stronger than “not yet treated at event time e ” since it keeps the control group fixed across the entire event window. Let \Omega_{\kappa} denote the set of (trimmed) treated cohorts a for which the full event window is observed and the clean-control rule is feasible (so, \mathcal{C}_{a}\neq\emptyset ). Because of that control units may appear more than once in the analysis. The numbers of eligible control and treated units are N_{a}^{D}=||\mathcal{D}_{a}||\qquad N_{a}^{C}=||\mathcal{C}_{a}||\qquad N_{\Omega_{\kappa}}^{D}=\sum_{a\in\Omega_{\kappa}}N_{a}^{D}\qquad N_{\Omega_{\kappa}}^{C}=\sum_{a\in\Omega_{\kappa}}N_{a}^{C} where N_{a}^{D} and N_{a}^{C} are the numbers of eligible treated and control units for sub-experiment a respectively; N_{\Omega_{\kappa}}^{D} and N_{\Omega_{\kappa}}^{C} are the total numbers of eligible treated and controls units for all sub-experiment respectively. The target parameter is then the trimmed aggregate ATT as defined by Wing et al. ( [ ref-wing2024 ] ) \theta_{\kappa}^{e}=\sum_{a\in\Omega_{\kappa}}ATT(a,a+e)\times\frac{N_{a}^{D}}{N_{\Omega_{\kappa}}^{D}} It averages cohort-specific effects using treated-cohort shares that are stable across event time. For each admissible a\in\Omega_{\kappa} , create a sub-experiment consisting of units in \mathcal{D}_{a}\cup\mathcal{C}_{a} observed over event times e\in\{-\kappa_{pre},\dots,\kappa_{post}\} , where calendar time is t=a+e . Then, for any event time e , define the change from the reference period -1 as \Delta Y_{s,a+e}=Y_{s,a+e}-Y_{s,a-1} Within sub-experiment a , define the treated and control mean changes as \bar{\Delta}_{a,e}^{D}=\frac{1}{N_{a}^{D}}\sum_{s\in\mathcal{D}_{a}}\Delta Y_{s,a+e}\qquad\bar{\Delta}_{a,e}^{C}=\frac{1}{N_{a}^{C}}\sum_{s\in\mathcal{C}_{a}}\Delta Y_{s,a+e} Then the cohort-specific DID is DID_{a,e}=\bar{\Delta}_{a,e}^{D}-\bar{\Delta}_{a,e}^{C} Under no anticipation and within-subexperiment parallel trends, DID_{a,e} identifies ATT(a,a+e) . 2.2 Weighted stacked DID The ordinary stacked DID estimator pools all treated observations across sub-experiments and all clean-control observations across sub-experiments. At event time e , this pooled contrast can be written as DID_{e}^{SDID}=\sum_{a\in\Omega_{\kappa}}\frac{N_{a}^{D}}{N_{\Omega_{\kappa}}^{D}}\bar{\Delta}_{a,e}^{D}-\sum_{a\in\Omega_{\kappa}}\frac{N_{a}^{C}}{N_{\Omega_{\kappa}}^{C}}\bar{\Delta}_{a,e}^{C} This expression reveals the central problem emphasized by Wing et al. ( [ ref-wing2024 ] ). The treated side is aggregated using the cohort shares N_{a}^{D}/N_{\Omega_{\kappa}}^{Treated} , while the control side is aggregated using a different set of shares, N_{a}^{C}/N_{\Omega_{\kappa}}^{Control} . Therefore, untreated trends do not generally cancel in the pooled contrast even if parallel trends holds within each sub-experiment. Wing et al. ( [ ref-wing2024 ] ) correct the aggregation problem by assigning each control observation in sub-experiment a the sample weight Q_{sa}=\begin{cases}1,&s\in\mathcal{D}_{a}\\[6.0pt] \dfrac{N_{a}^{D}/N_{\Omega_{\kappa}}^{D}}{N_{a}^{C}/N_{\Omega_{\kappa}}^{C}},&s\in\mathcal{C}_{a}\end{cases} With these corrective weights, the pooled control trend is reaggregated using the same cohort shares as the treated trend: DID_{e}^{WSDID}=\sum_{a\in\Omega_{\kappa}}\frac{N_{a}^{D}}{N_{\Omega_{\kappa}}^{D}}\bar{\Delta}_{a,e}^{D}-\sum_{a\in\Omega_{\kappa}}\frac{N_{a}^{D}}{N_{\Omega_{\kappa}}^{D}}\bar{\Delta}_{a,e}^{C}=\sum_{a\in\Omega_{\kappa}}\frac{N_{a}^{D}}{N_{\Omega_{\kappa}}^{D}}DID_{a,e} Hence, under the usual stacked-DID assumptions, weighted stacked DID identifies \theta_{\kappa}^{e} rather than a distorted mixture of treated and control trends. In practice, the estimator can be implemented by weighted least squares on the stacked sample. Since the data is stacked, it is natural to change the notation for unit from s (that represents unit) to sa (that represents unit in a sub-experiment). The model specification is Y_{sa,e}=\underbrace{\alpha_{sa}+\gamma_{ae}}_{\text{Fixed effects}}+\underbrace{\sum_{h=\kappa_{pre},\ h\neq-1}^{\kappa_{post}}\beta_{h}D_{sa}\mathbf{1}\{e=h\}}_{\text{Dynamic effects}}+\varepsilon_{sa,e} where \alpha_{sa} and \gamma_{ae} are sub-experiment fixed effects and D_{sa} is a time-invariant indicator of treatment in sub-experiment a . Observations are weighted by Q_{sa} and coefficients \beta_{e} are the trimmed aggregate ATT at event time e . The variance estimation is based on the assumption that observations are