Design-Robust Two-Way-Fixed-Effects Regression For Panel Data

Dmitry Arkhangelsky, Guido W. Imbens, Lihua Lei, Xiaoman Luo
7/29/2021
econ.EMecon.GNstat.ME

Official code: xiaomanluo/ripwPaper (9 stars, R, last commit 2024-03-04). 1 more implementation below.

Abstract

We propose a new estimator for average causal effects of a binary treatment with panel data in settings with general treatment patterns. Our approach augments the popular two-way-fixed-effects specification with unit-specific weights that arise from a model for the assignment mechanism.

Show full abstract

We show how to construct these weights in various settings, including the staggered adoption setting, where units opt into the treatment sequentially but permanently. The resulting estimator converges to an average (over units and time) treatment effect under the correct specification of the assignment model, even if the fixed effect model is misspecified. We show that our estimator is more robust than the conventional two-way estimator: it remains consistent if either the assignment mechanism or the two-way regression model is correctly specified. In addition, the proposed estimator performs better than the two-way-fixed-effect estimator if the outcome model and assignment mechanism are locally misspecified. This strong double robustness property underlines and quantifies the benefits of modeling the assignment process and motivates using our estimator in practice. We also discuss an extension of our estimator to handle dynamic treatment effects.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
xiaomanluo/ripwPaperOfficial9R–2024-03-04
lihualei71/ripwOfficial3R–2024-03-03

Paper repository for "Double Robust Two-Way Fixed Effect Regression for Panel Data"

97RJul 28, 20212 years ago
lihualei71/ripwOfficial100%

An R package for Reshaped Inverse Propensity Weighted (RIPW) Two-way fixed effects (TWFE) estimator

33RMar 3, 20242 years agoNOASSERTION

Similar Papers

Cite this paper

@article{arkhangelsky2021designrobust,
  title  = {Design-Robust Two-Way-Fixed-Effects Regression For Panel Data},
  author = {Dmitry Arkhangelsky and Guido W. Imbens and Lihua Lei and Xiaoman Luo},
  year   = {2021},
  eprint = {2107.13737},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.13737}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.13737.svg)](https://codeofpaper.com/paper/2107.13737)

Discussion