Skip to content

Commit

Permalink
dec2023 update
Browse files Browse the repository at this point in the history
  • Loading branch information
asjadnaqvi committed Dec 6, 2023
1 parent b854e05 commit 70d94ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/code/06_00_code.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: default
title: Stata code
nav_order: 0
nav_order: 6
permalink: /docs/code
has_children: true
mathjax: true
Expand Down
14 changes: 8 additions & 6 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,22 @@ Some thoughts below from my own perspective (these are also subject to evolve ov

## What happened? The DiD renaissance

Several DiD papers came out simultaneously in 2020 and 2021 with futher package roll-outs in 2022. 2023 has seen several package updates, optimizations to scripts, and newer papers converted into packages.
The DiD renaissance was nothing short of a revolutionary movement. Several DiD papers and packages coming out simultaneously in 2020 and 2021 was a game changer for a relatively stable field of causal inference. Additionally, with COVID-19 lockdowns where everyone working from home, and #EconTwitter at its peak levels of activities on line helped boost these new methods. Even in 2023, several really solid packages have been released and various existing packages have been optimizated.

At the heart of this new DiD literature is the premise that the classic Two-way Fixed Effects (TWFE) model can give [wrong estimates](https://asjadnaqvi.github.io/DiD/docs/code/06_twfe/). This is especially true if the treatments are heterogeneous (differential treatment timings, different treatment sizes, different treatment statuses over time) that can result in "negative weights" contaminating the ATE.
At the heart of this new DiD literature is the premise that the classic Two-way Fixed Effects (TWFE) model can give [wrong estimates](https://asjadnaqvi.github.io/DiD/docs/code/06_01_twfe/). This is very likely especially if treatments are heterogeneous (differential treatment timings, different treatment sizes, different treatment statuses over time) that can contaminate the treatment effects. This can result from "bad" treatment combinations biased the average treatment estimation to the point of even reversing the sign.

Innovations like the [Bacon decomposition](https://asjadnaqvi.github.io/DiD/docs/code/06_bacon/) help us unpack the weights of the different combinations of different treated and untreated cohorts. The new DiD methods introduce various DiD estimation techniques that "correct" for these TWFE biases. Within these packages are different ways of handling parallel trends, negative weights, covariates, controls, etc. using various methods ranging from bootstrapping, inverse probability weights, matching, influence functions, and imputations. The packages are constantly being improved, and currently have multiple implementations across and within different languages. What is not clear, and requires a deeper dive, is which method/package works best for certain problems. Hopefully, more will be written on comparing the utility of each estimation technique by those who know this stuff better. At the time of updating this, new papers and packages are still being released but at a considerably less frequency. We are now seeing more applications and replications that can help us understand the nuances across these various DiD innovations.
Innovations like the [Bacon decomposition](https://asjadnaqvi.github.io/DiD/docs/code/06_02_bacon/) help us unpack the relative weight of the various combinations of treated versus untreated cohorts. The new DiD methods "correct" for these TWFE biases by combining various estimation techniques, such as bootstrapping, inverse probability weights, matching, influence functions, and imputations, to handle parallel trends, negative weights, covariates, and controls. The packages are constantly being improved, and currently have multiple implementations across and within different languages.

In 2022, several review papers came out, that summarize the state-of-the-field really well. They are a good starting point to familiarize oneself with the methods and are marked in the [literature](https://asjadnaqvi.github.io/DiD/docs/resources#papers) section.
While these methods are definite improvement over classic TWFE methods, what is not very clear, and requires a deeper dive, is which method and/or package works best for which problems. Hopefully, more will be written on comparing the utility of each estimation technique by those who know this stuff better. At the time of updating this, new papers and packages are still being released but at a considerably less frequency. We are now seeing more applications and replications that can help us understand the nuances across these various DiD innovations.

Several review papers have come out that summarize the state-of-the-field really well. They are a good starting point to familiarize oneself with the methods and are marked in the [literature](https://asjadnaqvi.github.io/DiD/docs/reading/04_resources) section.


## Misc info

The aim of the code repository is to help readers navigate the code structure, and syntax usage for different packages. Therefore, this repository is periodically updated. If you want to report errors and/or contribute, then please [open an issue](https://github.com/AsjadNaqvi/DiD/issues), or [start a discussion](https://github.com/asjadnaqvi/DiD/discussions), or e-mail me at asjadnaqvi@gmail.com.
The aim of this repository is to help readers navigate the packages, code, and syntax usage. Therefore, this repository is periodically updated. If you want to report errors, updates, and/or want to contribute, then please [open an issue](https://github.com/AsjadNaqvi/DiD/issues), or [start a discussion](https://github.com/asjadnaqvi/DiD/discussions), or e-mail me at asjadnaqvi@gmail.com.

I update the [Stata code](https://asjadnaqvi.github.io/DiD/docs/code) every 3 months or so. [@grantmcdermott](https://github.com/grantmcdermott) maintains the [R code](https://asjadnaqvi.github.io/DiD/docs/code_r). Please reach out if you can help contribute code for *Python* or *Julia*.
I update the [Stata code](https://asjadnaqvi.github.io/DiD/docs/code) every few months or so. Similary, [@grantmcdermott](https://github.com/grantmcdermott) maintains the [R code](https://asjadnaqvi.github.io/DiD/docs/code_r). Please reach out if you can help contribute code for *Python* or *Julia*.

If you use this repository and find it helpful, acknowledgements and/or citations will be highly appreciated.

0 comments on commit 70d94ff

Please sign in to comment.