Тёмный

Dynamic Difference-in-Differences (The Effect, Videos on Causality, Ep 55) 

Econometrics, Causality, and Coding with Dr. HK
Подписаться 14 тыс.
Просмотров 6 тыс.
50% 1

Please visit www.theeffectbook.net to read The Effect online for free, or find links to purchase a physical copy or ebook.
The Effect is a book about research design and causal inference. How can we use data to learn about the world? How can we answer questions about whether X causes Y even if we can't run a randomized experiment? The book covers these things and plenty more. These videos are meant to accompany the book, although they can also be viewed on their own.
This video relates to material found in Chapter 18 of the book.
A version of this video without background music can be found here: • Dynamic Difference-in-...
The dynamic difference-in-differences model is a neat way to allow the effect of your treatment to vary over time in a difference-in-differences context. This can allow you to see how the effect evolves after it goes into place, and also lets you see if it appears to have an effect before it even happens (uh oh... perhaps a parallel trends violation!)

Опубликовано:

 

6 июл 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@gabrielasantana3809
@gabrielasantana3809 Год назад
Thank you, it is very succinct and helpful
@roosmeijer2220
@roosmeijer2220 Год назад
amazing video
@SouravDas-iw6ej
@SouravDas-iw6ej Год назад
The best video on event study analysis I have ever seen. Could you please also explain the DID estimator proposed by de chaisemartin and d'haultfoeuille (2020) in a separate video. I am struggling to understand the paper.
@NickHuntingtonKlein
@NickHuntingtonKlein Год назад
Thanks! No plans at the moment to cover that paper, but I do go over a few of the new estimators in my chapter including Callaway and Sant'Anna
@SouravDas-iw6ej
@SouravDas-iw6ej Год назад
@@NickHuntingtonKlein Great! I will be waiting for that
@NickHuntingtonKlein
@NickHuntingtonKlein Год назад
@@SouravDas-iw6ej no need to wait! Here's the video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-hu2nDbnpALA.html And here's the chapter section www.theeffectbook.net/ch-DifferenceinDifference.html#doing-multiple-treatment-periods-right
@SouravDas-iw6ej
@SouravDas-iw6ej Год назад
@@NickHuntingtonKlein Wow! That's cool. Thanks a lot
@marinakousta680
@marinakousta680 2 месяца назад
Thanks for the great video and your very helpful book! May I ask - how exactly would the stata code look to test the "pre-treatment" period effects you are seeing and then plotting them?
@NickHuntingtonKlein
@NickHuntingtonKlein 2 месяца назад
Thanks! See this section of the book www.theeffectbook.net/ch-DifferenceinDifference.html#long-term-effects
@CharlieDickens-j4m
@CharlieDickens-j4m 6 дней назад
Hi mate. Not sure if you are still using platform, however, I have a question for you. For a job application assignment I need to us diff-in-diff to estimate the impact of a job training programme on log(employment). For context, in this hypothetical scenario, local government either roll out the programme (treatment group) or not (control group). I have data on log(employment) and log(population) for 3 periods. Two pre treatment periods (parallel trends assumption holds) and one post treatment period. My current regression looks like Δlog(employment) = time fixed effects + group fixed effects + DiD dummy + log(emp) + ε. Does it make sense to add an interaction term for each local government and the DID dummy to capture the heterogeneity in treatment effects for each treated unit?
@NickHuntingtonKlein
@NickHuntingtonKlein 6 дней назад
I would probably make log(employment) the dependent variable and leave it off the right side, but your version works too I think. I'm assuming treatment is applied to all cases at the same time - if treatment is staggered then the typical TWFE setup doesn't work. If you add an interaction term for each local government, then in effect what you're doing is running a separate DID for each local government vs. the same control group. There's nothing inherently wrong with this, although keep in mind that your effective sample size for each of the DIDs will be much smaller (i.e. do you have enough sample to actually be able to look at each effect separately) and you now have *many* parallel trends assumptions to investigate - one for each treated government - rather than just one.
@hanifabd.43
@hanifabd.43 Год назад
interesting explanation. Can you tell me if there is a way to observe the difference in effects between a treatment group and a control group using the difference-in-differences (DiD) method? For example, within the treatment group, I want to know if there are differences in the impact of treatment between men and women. Should I separate the samples by gender, or is there another method? Thank you.
@hanifabd.43
@hanifabd.43 Год назад
Sorry, I mean difference in effect within a treatment group.
@NickHuntingtonKlein
@NickHuntingtonKlein Год назад
@@hanifabd.43 Yep! Just use any of the methods for allowing a treatment effect to differ across some characteristic. The simplest of which would be just taking our basic DID setup and splitting the Treated indicator into two separate groups, Treated Men and Treated Women.
@hanifabd.43
@hanifabd.43 Год назад
@@NickHuntingtonKlein thank you for your response. is it possible to use basic DiD model, then I include dummy for gender?
@NickHuntingtonKlein
@NickHuntingtonKlein Год назад
@@hanifabd.43 Not just a dummy by itself, but interacted, sure.
@hanifabd.43
@hanifabd.43 Год назад
​@@NickHuntingtonKlein so the model will be: Y_it = α + β1Treat_i + β2Post_t + β3(Treat_iPost_t) + β4Male_i + β5(Treat_iMale_i) + ε_it still need more time to understand how interaction terms works.
@uguraytun
@uguraytun 5 месяцев назад
Hello Nick, Thank you for your video. I would like to ask you about the event study design. My dataset is monthly panel between 2013 and 2018. My shock starts from Jan 2016. Should I put all time periods except the Dec 2015 in the event study? This approach makes my all post-periods insignificant and even pre-periods signficant, leading to pre-trend problem. As you guessed 60 coefficient might have created overparameterization in my regression. Some papers are going back to just 12 months before the shock even though their dataset lies to 24 or 36 months back. Does make sense for you? Best,
@NickHuntingtonKlein
@NickHuntingtonKlein 5 месяцев назад
I don't think overparameterization should be an issue as long as you have plenty of observations per period / group (and if you don't, then this might not be the model for you). Going back farther gives you more data which is good, as long as you don't go back so far that the data no longer is representative of the period you're interested in. Significant pre periods does make parallel trends less plausible. That's a feature of the data though, not something that can really be fixed with modeling! You might try a method like HonestDID (Roth) which allows for parallel trend violations and lets you bound the effect.
@uguraytun
@uguraytun 5 месяцев назад
Thank you @@NickHuntingtonKlein for your quick reply. I'm going to give a try to HonestDID. I have another question btw. In the monthly panel data, how should I control the seasonality? Does using firm x month + time FEs make sense for you? Or firm + month + time FEs instead?
@uguraytun
@uguraytun 5 месяцев назад
My outcome variables, I forgot to say, are the average wage and total sales
@NickHuntingtonKlein
@NickHuntingtonKlein 5 месяцев назад
@@uguraytun I don't think that changes it
@uguraytun
@uguraytun 5 месяцев назад
Thank you! @@NickHuntingtonKlein
@c.comploj3775
@c.comploj3775 Год назад
Feedback: If you want to teach people, refrain from using the background music (in a playlist), and remove the stock footage clips.
@NickHuntingtonKlein
@NickHuntingtonKlein Год назад
There are links to no-background-music versions in the description. People like the stock footage, it breaks things up, I don't really get it either though
Далее
Вопрос Ребром: Сергей Бурунов 2
1:03:47
ЛУЧШАЯ ПОКУПКА ЗА 180 000 РУБЛЕЙ
28:28
Econometrics - Difference in Differences
16:29
Просмотров 13 тыс.
Difference in difference analysis using python
20:24
Просмотров 10 тыс.
Causality: Difference-in-Differences
11:10
Просмотров 9 тыс.
Econometrics - Within Variation and Fixed Effects
20:06
Difference-in-differences methods
16:18
Просмотров 42 тыс.
Вопрос Ребром: Сергей Бурунов 2
1:03:47