[Paper Review] Difference in Differences with Time-Varying Covariates
This paper identifies and addresses critical flaws in two-way fixed effects (TWFE) regressions when used for difference-in-differences with time-varying and time-invariant covariates. It proposes a doubly robust estimator that corrects for hidden linearity bias, negative weighting, and weight-reversal issues, ensuring consistent estimation under weaker assumptions than TWFE.
This paper considers identification and estimation of causal effect parameters from participating in a binary treatment in a difference in differences (DID) setup when the parallel trends assumption holds after conditioning on observed covariates. Relative to existing work in the econometrics literature, we consider the case where the value of covariates can change over time and, potentially, where participating in the treatment can affect the covariates themselves. We propose new empirical strategies in both cases. We also consider two-way fixed effects (TWFE) regressions that include time-varying regressors, which is the most common way that DID identification strategies are implemented under conditional parallel trends. We show that, even in the case with only two time periods, these TWFE regressions are not generally robust to (i) time-varying covariates being affected by the treatment, (ii) treatment effects and/or paths of untreated potential outcomes depending on the level of time-varying covariates in addition to only the change in the covariates over time, (iii) treatment effects and/or paths of untreated potential outcomes depending on time-invariant covariates, (iv) treatment effect heterogeneity with respect to observed covariates, and (v) violations of strong functional form assumptions, both for outcomes over time and the propensity score, that are unlikely to be plausible in most DID applications. Thus, TWFE regressions can deliver misleading estimates of causal effect parameters in a number of empirically relevant cases. We propose both doubly robust estimands and regression adjustment/imputation strategies that are robust to these issues while not being substantially more challenging to implement.
Motivation & Objective
- To identify and diagnose key weaknesses in commonly used two-way fixed effects (TWFE) regressions when parallel trends is assumed conditional on time-varying and time-invariant covariates.
- To demonstrate that TWFE regressions suffer from hidden linearity bias even in two-period settings, requiring implausible restrictions on untreated potential outcomes.
- To develop a doubly robust estimation strategy that is robust to model misspecification in both the outcome regression and propensity score models.
- To provide practical diagnostics for detecting hidden linearity bias and assessing the sensitivity of TWFE estimates to violations of key identifying assumptions.
- To offer a simple, implementable alternative to TWFE that avoids negative weighting and weight-reversal problems while maintaining consistency under weaker conditions.
Proposed method
- Proposes a doubly robust (DR) estimator for group-specific average treatment effects on the treated (ATT(g,t)) that combines outcome regression and generalized propensity score models.
- Uses a weighted estimating equation framework where the weight function adjusts for selection into treatment based on time-varying and time-invariant covariates.
- Employs a flexible parametric model for the generalized propensity score: $ p_{g,t}(X_t, X_{g-1}, Z; oldsymbol{ heta}_{g,t}) = \Phi\big( (X_t - X_{g-1})' \phi^{\text{change}}_{t,g-1} + X_{g-1}' \phi^{\text{level}}_{t,g-1} + Z' \phi^{Z}_{t,g-1} \big) $, with $ \Phi $ a known CDF.
- Derives the DR estimator as $ \widehat{ATT}^{DR}(g,t) = \frac{1}{n} \sum_{i=1}^n w^{DR}_{g,t}(W_{igt}; \hat{\phi}_{g,t}) \big( (Y_{it} - Y_{ig-1}) - m_{g,t}(X_{it}, X_{ig-1}, Z_i; \hat{\lambda}_{g,t}) \big) $, where weights correct for selection and imbalance.
- Establishes asymptotic normality and root-n consistency under regularity conditions and either the outcome regression or propensity score model being correctly specified.
Experimental results
Research questions
- RQ1How do TWFE regressions perform when parallel trends is assumed conditional on time-varying and time-invariant covariates, especially in two-period settings?
- RQ2What are the specific identification failures of TWFE regressions in the presence of time-varying covariates, even when treatment timing is fixed?
- RQ3To what extent do TWFE regressions suffer from hidden linearity bias, where trends in untreated potential outcomes depend on covariate levels or time-invariant characteristics?
- RQ4Can a doubly robust estimator be constructed that is consistent even if one of the working models (outcome or propensity score) is misspecified?
- RQ5How can researchers diagnose and assess sensitivity to hidden linearity bias in empirical DiD applications with covariates?
Key findings
- TWFE regressions are not robust to hidden linearity bias: even in two-period settings, they require that untreated potential outcomes do not depend on the level of time-varying covariates or time-invariant covariates.
- TWFE regressions can produce misleading estimates due to negative weighting and weight-reversal issues, even when no hidden linearity bias is present.
- The proposed doubly robust estimator $ \widehat{ATT}^{DR}(g,t) $ is consistent under weaker conditions: it remains consistent if either the outcome regression or the generalized propensity score model is correctly specified.
- The DR estimator achieves asymptotic normality and can be used for valid inference via multiplier bootstrap, as shown in the supplementary appendix.
- The paper provides practical diagnostics to assess the extent of misspecification bias arising from TWFE regressions in empirical applications.
- The R package `pte` implements the proposed estimator, enabling straightforward application of the method in empirical research.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.