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

  Рет қаралды 5,954

Econometrics, Causality, and Coding with Dr. HK

Econometrics, Causality, and Coding with Dr. HK

2 жыл бұрын

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!)

Пікірлер: 30
@gabrielasantana3809
@gabrielasantana3809 Жыл бұрын
Thank you, it is very succinct and helpful
@roosmeijer2220
@roosmeijer2220 Жыл бұрын
amazing video
@marinakousta680
@marinakousta680 3 ай бұрын
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 3 ай бұрын
Thanks! See this section of the book www.theeffectbook.net/ch-DifferenceinDifference.html#long-term-effects
@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 kzbin.info/www/bejne/nqaVn3eYo9V0gqM 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
@uguraytun
@uguraytun 6 ай бұрын
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 6 ай бұрын
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 6 ай бұрын
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 6 ай бұрын
My outcome variables, I forgot to say, are the average wage and total sales
@NickHuntingtonKlein
@NickHuntingtonKlein 6 ай бұрын
@@uguraytun I don't think that changes it
@uguraytun
@uguraytun 6 ай бұрын
Thank you! @@NickHuntingtonKlein
@CharlieDickens-j4m
@CharlieDickens-j4m 26 күн бұрын
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 26 күн бұрын
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.
@CharlieDickens-j4m
@CharlieDickens-j4m 18 күн бұрын
@@NickHuntingtonKlein Many thanks for the response, Nick. L(emp) on the right side was a typo and meant to be l(pop). And yes, its a one-off treatment, so static TWFE DiD works. I ended up dropping the interaction term based on what you said. However, I controlled for treatment and post treatment, and the DiD control was the interaction between the two. Anything inherently wrong with this?
@NickHuntingtonKlein
@NickHuntingtonKlein 18 күн бұрын
@@CharlieDickens-j4m seems fine to me! Standard DID
@CharlieDickens-j4m
@CharlieDickens-j4m 18 күн бұрын
@@NickHuntingtonKlein Legend. Thanks for the taking the time out of your day to reply!
@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.
@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
Staggered Treatment in Difference-in-Differences (The Effects, Videos on Causality, Ep 56)
9:02
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 13 М.
Difference in Differences (The Effect, Videos on Causality, Ep 51)
10:42
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 3 М.
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 10 МЛН
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 194 МЛН
Каха заблудился в горах
00:57
К-Media
Рет қаралды 10 МЛН
Causal Inference: A Simple Difference-in-Difference Model
26:38
Mike Jonas Econometrics
Рет қаралды 56 М.
Checking Regression Discontinuity Assumptions (The Effect, Videos on Causality, Ep 64)
10:52
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 1,3 М.
Econometrics - Difference in Differences
16:29
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 13 М.
Causal Inference -- 20/23 -- Staggered Adoption: The Bacon Decomposition
35:54
Intuitive MetriX – Ben Elsner
Рет қаралды 2,9 М.
Difference-in-Difference estimation in R
32:35
Ralf Becker
Рет қаралды 8 М.
Causal Inference -- 17/23 -- Difference-in-Differences Basics I
22:16
Intuitive MetriX – Ben Elsner
Рет қаралды 2,4 М.
Causality: Difference-in-Differences
11:10
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 9 М.
How to decide whether an effect is fixed or random in mixed models
11:33
Regression Discontinuity (The Effect, Videos on Causality, Ep 61)
10:08
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 1,4 М.
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 10 МЛН