Synthetic Difference In Differences Estimation

Damian Clarke, Daniel Pailañir, Susan Athey, Guido W. ImbensarXiv 2023 · DOI

Abstract

In this paper, we describe a computational implementation of the Synthetic difference-in-differences (SDID) estimator of Arkhangelsky et al. (2021) for Stata. Synthetic difference-in-differences can be used in a wide class of circumstances where treatment effects on some particular policy or event are desired, and repeated observations on treated and untreated units are available over time. We lay out the theory underlying SDID, both when there is a single treatment adoption date and when adoption is staggered over time, and discuss estimation and inference in each of these cases. We introduce the sdid command which implements these methods in Stata, and provide a number of examples of use, discussing estimation, inference, and visualization of results.

Introduction

Estimating the impact of a policy change—a "treatment"—using panel data is a fundamental task in social science. Traditionally, researchers have relied on two primary tools: Difference-in-Differences (DID) and Synthetic Control (SC). However, both methods have significant limitations. DID relies on the "parallel trends" assumption, which assumes that treated and control groups would have evolved identically in the absence of treatment. SC creates a "pseudo-treated" unit by weighting control units, but it can fail if the treated unit is an outlier or if there are many treated units.

This paper introduces sdid, a new Stata command that implements the Synthetic Difference-in-Differences (SDID) estimator. By combining the strengths of DID and SC, SDID offers a more robust way to estimate causal effects, even when traditional assumptions fail or treated units fall outside the "convex hull" of the control group. The command, developed by Damian Clarke, Daniel Pailañir, Susan Athey, and Guido Imbens, provides a formal implementation of the estimator originally proposed by Arkhangelsky et al. (2021).

Methodology

SDID works by running a weighted Two-Way Fixed Effects (TWFE) regression. The estimator calculates two sets of weights to improve accuracy:

  • Unit Weights ($\omega_i$): Similar to Synthetic Control, SDID assigns weights to control units. However, instead of matching on levels, it matches on pre-treatment trends. This makes the estimator invariant to constant differences between units.
  • Time Weights ($\lambda_t$): This novel addition weights pre-treatment time periods that are more "similar" to the post-treatment era, helping to account for shifting trends over long horizons.

The sdid command also handles staggered adoption, where different units start treatment at different times, by averaging adoption-specific estimates. For inference, it supports block bootstrap, jackknife, and placebo (permutation) approaches.

Implementation and Data

The authors demonstrate the sdid command using two classic policy evaluation datasets:

  1. California’s Proposition 99: A "block design" dataset examining cigarette sales in California versus 38 other states from 1970–2000.
  2. Parliamentary Gender Quotas: A "staggered adoption" dataset covering 115 countries from 1990–2015, where different countries implemented quotas for women in parliament at various times.

The command also includes sophisticated handling of covariates. It offers an "optimized" method and a "projected" method (proposed by Kranz, 2022), the latter of which is significantly faster and more stable in certain settings.

Key Results

The implementation of sdid provides both robust estimates and intuitive visualizations:

  • Tobacco Control: Using the California Prop 99 data, the command replicates the finding that the tobacco control measure reduced cigarette consumption by approximately 15.6 packs per capita. The synthetic trend produced by SDID showed a tighter visual alignment with the treated unit than standard DID.
  • Gender Representation: In the gender quota example, SDID estimated an average treatment effect of +8.03 percentage points in women’s parliamentary representation.
  • Efficiency: The authors show that while the bootstrap is the most robust inference method, the jackknife is significantly faster (0.7 seconds vs. 18.2 seconds in their test case), making it a viable option for large-scale datasets.

Conclusion and Limitations

SDID represents a significant advancement in panel data econometrics, providing a "best of both worlds" approach. However, the current implementation requires balanced panels and a pool of never-treated units. In cases where only one unit is treated, researchers must rely on the placebo method for inference. Future work will likely focus on extending these methods to unbalanced panels and further refining computational efficiency.

Summary updated

BibTeX
@misc{clarke2023synthetic,
  author = {Damian Clarke and Daniel Pailañir and Susan Athey and Guido W. Imbens},
  title = {{Synthetic Difference In Differences Estimation}},
  year = {2023},
  eprint = {2301.11859},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.11859},
}
Figure