Hostname: page-component-74656f9884-rdgjk Total loading time: 0 Render date: 2026-11-08T09:33:10.549Z Has data issue: false hasContentIssue false

On the Use of Two-Way Fixed Effects Regression Models for Causal Inference with Panel Data

Published online by Cambridge University Press:  12 November 2020

Kosuke Imai
Affiliation:
Professor, Department of Government and Department of Statistics, Harvard University, 1737 Cambridge Street, Institute for Quantitative Social Science, Cambridge, MA 02138, USA. E-mail: Imai@Harvard.Edu, URL: https://imai.fas.harvard.edu/
In Song Kim*
Affiliation:
Associate Professor, Department of Political Science, Massachusetts Institute of Technology, Cambridge, MA 02142, USA. E-mail: insong@mit.edu, URL: http://web.mit.edu/insong/www/
*
Corresponding author In Song Kim
Rights & Permissions [Opens in a new window]

Abstract

The two-way linear fixed effects regression (2FE) has become a default method for estimating causal effects from panel data. Many applied researchers use the 2FE estimator to adjust for unobserved unit-specific and time-specific confounders at the same time. Unfortunately, we demonstrate that the ability of the 2FE model to simultaneously adjust for these two types of unobserved confounders critically relies upon the assumption of linear additive effects. Another common justification for the use of the 2FE estimator is based on its equivalence to the difference-in-differences estimator under the simplest setting with two groups and two time periods. We show that this equivalence does not hold under more general settings commonly encountered in applied research. Instead, we prove that the multi-period difference-in-differences estimator is equivalent to the weighted 2FE estimator with some observations having negative weights. These analytical results imply that in contrast to the popular belief, the 2FE estimator does not represent a design-based, nonparametric estimation strategy for causal inference. Instead, its validity fundamentally rests on the modeling assumptions.

Information

Type
Letter
Copyright
© The Author(s) 2020. Published by Cambridge University Press on behalf of the Society for Political Methodology
Figure 0

Figure 1 An Example of the Binary Treatment Matrix with Five Units and Four Time Periods. Panels (a) and (b) illustrate how observations (i, t) are used to estimate counterfactual outcomes for the two-way fixed effects estimator (Proposition 1) and the adjusted matching estimator (Proposition 2), respectively. In the figures, the red underlined $\color{red}{}\underline{1} $ entry (4,3) represents the treated observation, for which the counterfactual outcome $Y_{it}(0)$ needs to be estimated. Circles indicate the set of matched observations—(4,1), (4,2), (4,4) in Panel (a) and (4,1), (4,2) in Panel (b)—that are from the same unit, whereas squares indicate those—(1,3), (2,3), (3,3), (5,3) in Panel (a) and (2,3), (5,3) in Panel (b)—from the same time period. Finally, triangles represent the set of observations—(1,1), (1,2), (1,4), (2,1), (2,2), (2,4), (3,1), (3,2), (3,4), (5,1), (5,2), (5,4) in Panel (a) and (2,1), (2,2), (5,1), (5,2) in Panel (b)—that are used to make adjustment for unit and time effects. The shaded grey symbols represent the “mismatches” with the same treatment status, which are prevalent in the two-way fixed effects estimator. The matching estimator in Panel (b) is designed to eliminate the attenuation bias within unit and time, although the adjustment set may still include mismatches (shaded triangles).

Figure 1

Figure 2 Illustration of how observations are used to estimate counterfactual outcomes for the DiD estimator (Equation (12)). The red underlined $\color{red}{}\underline{1} $ entry represents the treated observation $(4,3)$, for which the counterfactual outcome $Y_{it}(0)$ needs to be estimated. Circle indicates the matched observation (4,2) within the same unit, ${\mathcal {M}}_{it}^{\textsf {DiD}}$, whereas squares—(2,3) and (5,3)—indicate those from the same time period, ${\mathcal {N}}_{it}^{\textsf {DiD}}$. Finally, triangles—(2,2) and (5,2)—represent the set of observations that are used to make adjustment for unit and time effects, ${\mathcal {A}}_{it}^{\textsf {DiD}}$. Unlike the examples in Figure 1, ${\mathcal {A}}_{it}^{\textsf {DiD}}$ only contains control observations and hence no mismatches (i.e., shaded grey triangles) exist.

Supplementary material: PDF

Imai and Kim supplementary material

Imai and Kim supplementary material

Download Imai and Kim supplementary material(PDF)
PDF 176.2 KB