# Difference-in-difference robust to heterogeneous treatment effect - Gendron-Carrier et al. specification

I am trying to extend the results of Gendron-Carrier et al. (2022) article published in the American Economic Journal : Applied Economics which is about the effect of subway opening on pollution.

I want to use an estimation method robust to heterogeneous treatment effects (meaning that the effect of subway opening on air pollution may have a different trend throughout the different cities where it is implemented).

I cannot understand if the recent robust estimator proposed by De Chaisemartin and d'Hautfoeuille (2020) which is for two-way fixed estimation can be used in my case.

The specification of Gendron-Carrier is as follows :

$$AOD_{it} = \beta_i + \alpha_1D_{it} + \gamma'X_{it} + \epsilon_{it}$$

Where $$AOD$$ is a measure of air pollution, $$D_{it}$$ is a dummy variable equal to 1 when the subway has opened 18 months ago, $$X_{it}$$ is a set of controls consisting of year-by-continent indicators to flexibly account for regional trends in AOD, and city-by-calendar month (1–12) indicators to capture seasonality in pollution patterns as well as climate controls. $$\epsilon_{it}$$ is the error term of the equation.

Do you think the De Chaisemartin and d'Hautfoeuille applies in this case?

Is this a two-way fixed effects estimation?

In our case how can we apply an estimation method robust to heterogeneous treatment effects?

My advice is to do a stacked diff-in-diff. For each treated unit, randomly assign a control unit. This forms a group, $$g$$. There will be several such groups.
$$y_{igt} = \sum_{s}\beta_sT_{ig}d_{gs}+\lambda_i +\lambda_{gt}+\varepsilon_{igt}$$
where $$\beta_s$$ is the effect of being $$s$$ periods after (or before) treatment. $$T_{ig}$$ is a binary variable that individual $$i$$ in group $$g$$ was treated. $$d_{gs}$$ is a binary variable for being $$s$$ time periods from treatment for group $$g$$, $$\lambda_i$$ are individual FE, $$\lambda_{gt}$$ are fixed effects for group and being $$t$$ time periods from treatment.
{"ft_lang_label":"__label__en","ft_lang_prob":0.88029885,"math_prob":0.9943849,"size":1334,"snap":"2022-27-2022-33","text_gpt3_token_len":312,"char_repetition_ratio":0.1037594,"word_repetition_ratio":0.048309177,"special_character_ratio":0.22563718,"punctuation_ratio":0.05957447,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.998956,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-15T00:16:38Z\",\"WARC-Record-ID\":\"<urn:uuid:df77117f-3bd7-4b94-b1f6-588a75650db1>\",\"Content-Length\":\"221178\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a850cc89-df33-4a85-bb52-44559fe301e8>\",\"WARC-Concurrent-To\":\"<urn:uuid:da7a6572-0a0e-4140-a5a1-16362f36b840>\",\"WARC-IP-Address\":\"151.101.193.69\",\"WARC-Target-URI\":\"https://economics.stackexchange.com/questions/51889/difference-in-difference-robust-to-heterogeneous-treatment-effect-gendron-carr/51898\",\"WARC-Payload-Digest\":\"sha1:QXJDQGHFWZTV7HHLQUBPNXCN4XIWZBCP\",\"WARC-Block-Digest\":\"sha1:4QWKTJTYVXT26VTNUPHDVM35GLUWLVCC\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882572089.53_warc_CC-MAIN-20220814234405-20220815024405-00568.warc.gz\"}"}