---
title: Synthetic Difference-in-Differences (SDID)
url: https://www.emergentmind.com/topics/synthetic-difference-in-differences-sdid-ac2d324e-9191-45c8-b51b-3206a72086f8
type: topic
---

# Synthetic Difference-in-Differences (SDID)

Synthetic Difference-in-Differences (SDID) is an estimator for causal inference in panel and repeated cross-sectional data that integrates key features from both Difference-in-Differences (DiD) and Synthetic Control (SC) methodologies. By constructing both unit and time weights to optimize pre-treatment balance, SDID achieves robustness to latent confounding and offers substantial improvements in bias and precision over classical methods. It is consistent under general latent factor models and enables principled inference through a suite of bootstrap and placebo-based procedures.

## 1. Theoretical Formulation and Assumptions

SDID is built on the potential outcomes framework in the context of panel data. Let units $i = 1,\dots,N$ be observed over periods $t = 1,\dots,T$, with potential outcomes $Y_{it}(0)$ (untreated) and $Y_{it}(1)$ (treated). The observed outcome is $Y_{it} = W_{it} Y_{it}(1) + (1-W_{it}) Y_{it}(0)$, where $W_{it}$ is the binary treatment indicator, typically assigned to certain units after a specified treatment adoption date $T_0$.

The central goal is to impute the post-treatment counterfactuals for treated units and periods, and thereby to estimate the average treatment effect on the treated (ATT):
$$
\mathsf{ATT} = \frac{1}{N_1 T_1} \sum_{i \in \mathit{Treated}} \sum_{t > T_0} [ Y_{it}(1) - Y_{it}(0) ]
$$

The untreated potential outcomes are assumed to satisfy an interactive fixed effects (latent factor) model:
$$
Y_{it}(0) = \mu + \alpha_i + \beta_t + \gamma_i' \nu_t + \varepsilon_{it}
$$
with $\gamma_i$ and $\nu_t$ being unobserved unit and time factors, respectively, and $\varepsilon_{it}$ a mean-zero noise term [1812.09970, 2301.11859].

Consistency of SDID requires (i) the latent factor model is well-approximated at low rank, (ii) donor (control) units span the latent space of treated units, and (iii) sufficient pre-treatment periods and control units to estimate balancing weights [1812.09970, 2409.20199]. A “weighted parallel trends” assumption after adjustment is also required [1610.07748].

## 2. Methodology and Estimator Construction

SDID employs a two-step weighting scheme: synthetic control-style unit weights and “synthetic time” weights. The resulting ATT estimator is obtained by a weighted two-way fixed effects regression.

### a) Unit Weights (Synthetic Control Step)

For $N_0$ never-treated units (controls), nonnegative weights $\omega$ are chosen to match the pre-treatment mean outcome trajectory of the treated cohort. Specifically,
$$
(\omega_0^*, \omega^*) = \arg\min_{\omega_0 \in \mathbb{R},\, \omega \geq 0,\, \sum_i \omega_i = 1}
\sum_{t=1}^{T_0} \left[ \omega_0 + \sum_{i=1}^{N_0} \omega_i Y_{it} - \bar{Y}^\mathrm{tr}_t \right]^2 + \zeta^2 T_0 \|\omega\|_2^2
$$
where $\bar{Y}^\mathrm{tr}_t$ averages the treated units' outcomes in period $t$ and $\zeta$ is a regularization parameter [1812.09970, 2406.11046].

### b) Time Weights ("Synthetic Time" Step)

For $T_0$ pre-treatment periods, time weights $\lambda$ are selected by matching the post-treatment average of controls:
$$
(\lambda_0^*, \lambda^*) = \arg\min_{\lambda_0 \in \mathbb{R},\, \lambda \geq 0,\, \sum_t \lambda_t = 1}
\sum_{i=1}^{N_0} \left[ \lambda_0 + \sum_{t=1}^{T_0} \lambda_t Y_{it} - \bar{Y}^\mathrm{ct}_i \right]^2 + \zeta^2 N_0 \|\lambda\|_2^2
$$
where $\bar{Y}^\mathrm{ct}_i$ is the post-treatment mean outcome for control unit $i$ [1812.09970, 2310.11859].

### c) Weighted Two-Way Fixed Effects Regression

With estimated unit and time weights, the ATT is recovered by solving:
$$
\min_{\tau, \mu, \alpha, \beta}
\sum_{i=1}^{N} \sum_{t=1}^{T}
\omega_i \lambda_t [ Y_{it} - \mu - \alpha_i - \beta_t - \tau W_{it}]^2
$$
Equivalently, the estimator is a “double-difference” of post- versus pre-treatment outcomes, across treatment groups and periods, each reweighted to optimize pre-treatment balance [1812.09970, 2301.11859].

### d) Generalization and Relation to Existing Methods

- If $\omega_i \equiv 1/N_0$, $\lambda_t \equiv 1/T_0$: reduces to standard two-way FE DiD.
- If $\alpha_i \equiv 0$, $\lambda_t \equiv 1/T_0$: reduces to classical SC estimator.
- SDID is thus a superset of both DiD and SC approaches [1610.07748].

## 3. Extensions: Staggered Adoption, Event Studies, and Repeated Cross Sections

### a) Staggered Treatment and Event-Study Estimation

For staggered adoption (treatment at multiple points in time), cohort-by-cohort SDID is implemented. For each adoption cohort $a$, weights $(\omega^a, \lambda^a)$ are estimated, and cohort-specific ATTs are aggregated:
$$
\widehat{ATT} = \sum_{a} \frac{T^{a}_{post}}{T_{post}} \hat{\tau}_a
$$
Event-study (dynamic effect) estimators decompose SDID into period-by-period effects, facilitating the recovery of a full event-time response curve [2407.09565].

### b) Sequential SDID for Panel Event Studies

The Sequential SDID estimator iteratively applies SDID imputation to aggregated cohort data, treating prior cohort effects as known features for later cohorts. The sequential estimator is asymptotically equivalent to an oracle OLS estimator in a linear interactive fixed effects model:
$$
\hat{\tau}_{a,k}^{SSDiD} = Y_{a,a+k} - \sum_{j > a} \omega^{(a,k)}_j Y_{j,a+k} - \sum_{l < a+k} \lambda^{(a,k)}_l [Y_{a,l} - \sum_{j > a} \omega^{(a,k)}_j Y_{j,l}]
$$
with weights $(\omega^{(a,k)}, \lambda^{(a,k)})$ determined by pre-treatment minimization problems [2404.00164].

### c) Repeated Cross-Sectional Data

RC-SDID adapts SDID for repeated cross-sectional settings where group-period cells have unequal sizes. After group-level aggregation, an additional $1/N_{kt}$ cross-sectional weight is applied per individual, preserving unbiasedness under the latent factor model even with heteroskedastic cell sizes [2409.20199, 2503.11375].

## 4. Identification, Robustness, and Semiparametric Properties

SDID identification is doubly robust in the sense of [2503.11375]: the estimator is consistent if either parallel trends holds (as in DiD) or the synthetic control construction is valid (as in SC). The doubly robust moment function
$$
\varphi(S_i;m_s,p,w;\pi_1) = \frac{1}{\pi_1} \{ G_{1i} [ \Delta Y_i - m_s(X_i) ] - \sum_{g=2}^{NG+1} w_g(X_i) G_{gi} [ \Delta Y_i - m_s(X_i) ] \frac{p_1(X_i)}{p_g(X_i)} \}
$$
identifies the ATT under either assumption.

Orthogonality (Neyman orthogonality) holds under parallel trends, making the estimator amenable to semiparametric/machine learning adjustment for high-dimensional covariates, while non-orthogonality under SC requires accounting for the first-stage estimation error.

## 5. Inference Procedures

Multiple inference techniques ensure valid confidence intervals for SDID:

- **Bootstrap over units:** Sample treated or control units with replacement, re-estimate weights, and recompute the ATT in each draw [1812.09970, 2301.11859].
- **Jackknife:** Systematically omit each unit, recompute the estimator, and aggregate leave-one-out variances [2301.11859].
- **Placebo/Permutation Test:** Randomly assign “placebo” treatment among controls to simulate the finite-sample distribution [1812.09970].
- **Multiplier bootstrap:** For doubly robust SDID (with group structure and covariates), the multiplier bootstrap accommodates both parallel trends and SC identification modes [2503.11375].
- **Bayesian bootstrap:** Used for cohort-aggregated data in Sequential SDID [2404.00164].

## 6. Empirical and Simulation Performance

Simulation studies consistently demonstrate that SDID outperforms standard DiD and SC estimators in mean-squared prediction error, bias, and coverage under interactive fixed effects (latent factor) models—especially when parallel trends are violated or the treated units are outside the convex hull of the controls [1812.09970, 1610.07748, 2409.20199, 2404.00164]. In canonical policy evaluation applications (e.g., California smoking, German reunification, Mariel Boatlift), SDID displays lower bias and variance as well as credible standard errors [1610.07748].

Empirical applications—including the impact of ChatGPT bans on software development productivity, and the Alaska minimum wage increase on family income—adopt SDID for estimation and inference, finding stable and interpretable effects with robust uncertainty quantification [2406.11046, 2503.11375].

## 7. Implementation and Computational Considerations

SDID is implemented in standard statistical software via open-source packages (e.g., R: synthdid; Stata: sdid, sdid_event) [2301.11859, 2407.09565]. The estimation procedure entails solving regularized quadratic programs for unit and time weights under simplex constraints. Parameter regularization is tuned via closed-form or cross-validation to balance bias and variance. For repeated cross-sectional data, standard QP solvers accommodate the cell-weight adjustments [2409.20199].

Extensions include the handling of covariates (via projected or optimized approaches), multi-period and cohort-specific treatment adoption, event-study effect decomposition, and machine learning-based flexible adjustment for nuisance functions [2503.11375, 2301.11859, 2407.09565].

---

**References**: Key methodological contributions are synthesized from [1812.09970], [2301.11859], [2503.11375], [1610.07748], [2404.00164], [2407.09565], [2409.20199], and [2406.11046]. These works formalize SDID’s properties, extensions, and implementation.

Source: https://www.emergentmind.com/topics/synthetic-difference-in-differences-sdid-ac2d324e-9191-45c8-b51b-3206a72086f8