Econometrics - Within Variation and Fixed Effects

  Рет қаралды 16,374

Econometrics, Causality, and Coding with Dr. HK

Econometrics, Causality, and Coding with Dr. HK

Күн бұрын

Пікірлер: 48
@CaidynC
@CaidynC Ай бұрын
I want to say whole heartedly where have you been my entire semester? Seriously you follow the exact curriculum as my professor too and have the same mannerisms which is kinda funny. You are amazing
@ahmedk4345
@ahmedk4345 3 жыл бұрын
Watched a lot of videos regarding this topic but this was the most helpful one. For me, it tackles the main problem when it comes to topics like this: Students need to SEE what getting rid of between variation does to the model as you have shown on one of the graphs. Once I saw that it was 70% easier to comprehend what you were trying to explain ...And this should definitely have more views! Keep it up!
@HabibHussainKhan
@HabibHussainKhan 2 жыл бұрын
I watched many videos on this topic, but this one was the best.
@thomasdowson5765
@thomasdowson5765 3 жыл бұрын
Brilliant explanation, graphic made it very clear as well. Thanks Nick!
@rekhyt95
@rekhyt95 4 жыл бұрын
Very good. This should have many more views!
@lennyste
@lennyste Жыл бұрын
Excellent explanation! Great visuals with the graphs! Thanks
@mystearikap
@mystearikap 2 жыл бұрын
This is so helpful! I am reading the Wooldridge text on pooling cross-sections across time and this visualization about fixed effects was great!! Thank you.
@johannesh1741
@johannesh1741 4 жыл бұрын
Super helpful video! Very good that you covered the topic so thoroughly! Helped me a lot - thank you very much!
@MadridistaUlle
@MadridistaUlle Жыл бұрын
Brilliant stuff! The graphics were especially helpful!
@annpfi
@annpfi 11 ай бұрын
Phenomenal explanation, thanks Nick. :)
@JanSanono
@JanSanono 2 жыл бұрын
you're a legend mate, thanks so much!
@almaarmenta4779
@almaarmenta4779 11 ай бұрын
This explanation is just out of this world. Just one question, when you have the dummy variable output, does that mean that you would have as many tables as the number of counties? Where is the dummy variable in that output? Thanks!
@jackbramham5865
@jackbramham5865 3 жыл бұрын
Incredible explanation, thanks!
@MsCarolina143
@MsCarolina143 2 жыл бұрын
Such a well-explained video. Thank you! The visualization and explanation of the various axes was especially helpful!
@qinghuafeng1705
@qinghuafeng1705 8 ай бұрын
This is really helpful for me. Could I understand demean is actually remove the influence of something we cannot observe but is unique to that individual? Thank you for your sharing and for your reply.
@NickHuntingtonKlein
@NickHuntingtonKlein 8 ай бұрын
That's right. It removes anything about that individual that is constant over time. It will not remove things unique to that individuals that also change over time.
@qinghuafeng1705
@qinghuafeng1705 8 ай бұрын
@@NickHuntingtonKlein Thank you so much! I appreciate your quick reply!
@siddharthkaushal5194
@siddharthkaushal5194 2 жыл бұрын
This is a really great video! Thanks for posting :)
@pewpewpewpew7467
@pewpewpewpew7467 3 жыл бұрын
Very good video on this topic, the graphics really work for me. Thnx!
@Michael_YT1
@Michael_YT1 2 жыл бұрын
Thank you so much for this wonderfully visualised explanation! Helped me a lot with my thesis
@albertludi6098
@albertludi6098 3 жыл бұрын
Thank you Nick, this video really help me a lot!
@jorgeheribertochavezrosale1717
@jorgeheribertochavezrosale1717 2 жыл бұрын
You explain very well!!😊
@vincasvosylius6045
@vincasvosylius6045 4 жыл бұрын
Very understandable, great channel overall,
@Jorissim0
@Jorissim0 2 жыл бұрын
Thanks for the informative video! I am looking to add fixed effects to a multinomial logit model in R. Could I use either the group_by or LSDV methods in such a model and how would I adapt them if necessary? Thanks in advance!
@NickHuntingtonKlein
@NickHuntingtonKlein 2 жыл бұрын
The group_by method won't work for nonlinear models, and lsdv won't work either unless the set of fixed effects is very small. When multinomial logit gets individual effects added, it's usually in the form of random effects instead of fixed effects, and then you're wading into deep waters! Look for info on the mixed logit model.
@Jorissim0
@Jorissim0 2 жыл бұрын
@@NickHuntingtonKlein Thanks for your reply! I see, that might be getting a bit too complex. What about means centering? Or, as a less than ideal solution, adding dummies for each country? There are 8 countries and roughly between 400 and 600 observations, not such a big sample, I know, but that has to do with the nature of the data.
@NickHuntingtonKlein
@NickHuntingtonKlein 2 жыл бұрын
@@Jorissim0 Means centering is the group_by approach, which won't work here. With only 8 countries you might be okay to add dummies.
@Jorissim0
@Jorissim0 2 жыл бұрын
@@NickHuntingtonKlein okay, thanks a lot!
@syedfarhan2916
@syedfarhan2916 3 жыл бұрын
Great stuff. Very easy to understand.
@JOHNSMITH-ve3rq
@JOHNSMITH-ve3rq 3 жыл бұрын
In that graphic - which was amazingly helpful! - the numbers on the axes are changing too right? All the measurements are being put on the same scale somehow? It's very hard to understand otherwise, since those measurements can't just jump around arbitrarily...?
@NickHuntingtonKlein
@NickHuntingtonKlein 3 жыл бұрын
When it goes from overall variation to within, the axis numbers are changing, yes. Whatever the mean value for each individual was before is now set to 0.
@JOHNSMITH-ve3rq
@JOHNSMITH-ve3rq 2 жыл бұрын
@@NickHuntingtonKlein thanks king
@arunbhat7890
@arunbhat7890 5 ай бұрын
really good explainatition
@jooyoungkim3224
@jooyoungkim3224 2 жыл бұрын
This is an amazing video! In the last slide, you mentioned that fixed effects won't work for predictors with little within variation. Your example about government change makes total sense (i.e., slowly changing predictor), however, what are the criteria for 'little' within variation? Let's say you have a sample of N=200 and T = 5 and 150 groups don't change at all over time whereas 50 groups do, would this be considered a rare change?
@NickHuntingtonKlein
@NickHuntingtonKlein 2 жыл бұрын
There's not a hard cutoff or anything, but in that case you'd only be getting a treatment effect for the 50 who see change.
@koenoosthoek7882
@koenoosthoek7882 2 жыл бұрын
Thank you so much, your videos and online book The Effect are helping me out a lot. I just wanted to ask: say you want to evaluate the effect of a policy intervention (e.g. the relation between more government spending on safety/police capacity and crime rates) with the fixed effects method, and you have a panel dataset of countries that implemented such an intervention at some point in time. Is it necessary to have a control group in which this policy was not implemented, e.g. do you need a treatment and control group? Or would it suffice, for the fixed method, to just have cases that only implemented this policy?
@NickHuntingtonKlein
@NickHuntingtonKlein 2 жыл бұрын
Glad you like the book! In the case you're discussing, this is more a difference-in-differences design than straight up fixed effects. Using only treated countries is feasible, as long as treatment went into place at different times in different countries. This is called a rollout design. However, fixed effects approaches to DID don't work with rollout designs, you need alternate estimation methods. See the How the Pros Do It section in my DID chapter.
@koenoosthoek7882
@koenoosthoek7882 2 жыл бұрын
@@NickHuntingtonKlein Thank you so much! If I understood correctly, having (1) different moments of intervention (2) and different countries is a prerequisite to remove the between variation between units. As I do have 27 countries who were exposed to this policy at different points in time (EU Member States) - and in the absence of good control units - this rollout design sounds really good!
@csmlin
@csmlin 2 жыл бұрын
Hi Nick, great video and brilliant explanation! Would you mind explaining the interacted fixed effects, for example, industry-year fixed effects? Is it the within industry-year variation that is used for identification? What do the industry-year fixed effects control for? I want to picture this in your amazing graphics but couldn't figure out. Thanks so much.
@NickHuntingtonKlein
@NickHuntingtonKlein 2 жыл бұрын
With interacted fixed effects it's sometimes easier to think of them as a single fixed effect for a combined variable. Imagine you smashed together Industry and Year to get IndustryYear with values like "Retail 2011", "Retail 2012", and then did FE for that. Thinking of it that way should make it a bit more clear what it's doing - it's isolating variation within those groups. So it's using within-industry-year variation, just as you mentioned. Regressing Y on X with the industry-year FE, the coefficient on X is "a firm with an X value one unit higher than another firm in the same industry and year would be expected to have a Y that is (coefficient) units higher"
@manuelvaldes6029
@manuelvaldes6029 4 жыл бұрын
Great video! What if your dependent variable were binary and you were working with a non-linear model such as logit or probit? If you demean that variable, it is no longer binary, is it? How would you proceed then after demeaning? Is it not possible to use that procedure in non-linear specifications?
@NickHuntingtonKlein
@NickHuntingtonKlein 4 жыл бұрын
You can do fixed effects with probit/logit, but the same procedures (adding all the dummies or demeaning) no longer work. A lot of researchers just use linear probability models (OLS despite the binary dependent variables) when there are fixed effects. Or you can use a command specifically designed for it. Look for "fixed effects probit" or "fixed effects logit" estimators in your language of choice. In R, the fixest package has a full set of the estimators you'd need.
@manuelvaldes6029
@manuelvaldes6029 4 жыл бұрын
@@NickHuntingtonKlein thank you!
@scramah195
@scramah195 2 жыл бұрын
great graphic at 8:15
@agustinarcusa7696
@agustinarcusa7696 4 жыл бұрын
Great content!
@impieman10
@impieman10 3 жыл бұрын
I see that this video came out after the plm video. (kzbin.info/www/bejne/aJrKfoGFeausps0) Maybe I got things wrong and the videos aren't on the same subject? Or maybe the plm package is outdated, and now there are better ways of running a fixed effects model in R?
@NickHuntingtonKlein
@NickHuntingtonKlein 3 жыл бұрын
Haha honestly at this point I don't use plm or lm_robust, I use feols from the fixest package, which doesn't handle random effects but is faster and has all kinds of nice features. I know it's confusing. Here's my video on fixest kzbin.info/www/bejne/mIK9eHeBp8d7paM
@PABLO-oq1kt
@PABLO-oq1kt 3 жыл бұрын
I would like french people explaining this 😢
Econometrics - Difference in Differences
16:29
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 14 М.
Causality: Fixed Effects
5:52
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 20 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Econometrics - Interaction Terms
11:44
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 21 М.
Panel Data Analysis Part 1 | Pooled OLS, Fixed Effect, Random Effect
24:40
Panel data econometrics - an introduction
11:02
Ben Lambert
Рет қаралды 218 М.
Fixed effects in panel data
14:44
Nathan Wozny
Рет қаралды 133 М.
Panel Data Regression 1of9 - Introduction
8:38
Pat Obi
Рет қаралды 83 М.
Econometrics: Control Variables
8:24
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 23 М.
Fixed and random effects with Tom Reader
8:09
University of Nottingham
Рет қаралды 202 М.
Panel Data (Fixed Effects, Random Effects) - R for Economists Moderate 9
13:06
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 47 М.
Fixed Effects, First Differences and Pooled OLS - intuition
7:02
Ben Lambert
Рет қаралды 128 М.
Econometrics - Instrumental Variables
12:56
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 9 М.