Econometrics - Within Variation and Fixed Effects

Поделиться
HTML-код
  • Опубликовано: 7 авг 2024
  • This video introduces the concepts of between and within variation, and how you can control for between variation using fixed effects (and why you might want to!).

Комментарии • 47

  • @ahmedk4345
    @ahmedk4345 3 года назад +5

    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!

  • @thomasdowson5765
    @thomasdowson5765 2 года назад +2

    Brilliant explanation, graphic made it very clear as well. Thanks Nick!

  • @johannesh1741
    @johannesh1741 4 года назад +2

    Super helpful video! Very good that you covered the topic so thoroughly! Helped me a lot - thank you very much!

  • @jackbramham5865
    @jackbramham5865 3 года назад +2

    Incredible explanation, 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.

  • @rekhyt95
    @rekhyt95 3 года назад +2

    Very good. This should have many more views!

  • @lennyste
    @lennyste 10 месяцев назад

    Excellent explanation! Great visuals with the graphs! Thanks

  • @HabibKhan-wd1rn
    @HabibKhan-wd1rn Год назад

    I watched many videos on this topic, but this one was the best.

  • @Michael_YT1
    @Michael_YT1 2 года назад

    Thank you so much for this wonderfully visualised explanation! Helped me a lot with my thesis

  • @syedfarhan2916
    @syedfarhan2916 3 года назад

    Great stuff. Very easy to understand.

  • @vincasvosylius6045
    @vincasvosylius6045 3 года назад

    Very understandable, great channel overall,

  • @pewpewpewpew7467
    @pewpewpewpew7467 3 года назад

    Very good video on this topic, the graphics really work for me. Thnx!

  • @arunbhat7890
    @arunbhat7890 5 дней назад

    really good explainatition

  • @agustinarcusa7696
    @agustinarcusa7696 3 года назад

    Great content!

  • @annpfi
    @annpfi 5 месяцев назад

    Phenomenal explanation, thanks Nick. :)

  • @albertludi6098
    @albertludi6098 2 года назад

    Thank you Nick, this video really help me a lot!

  • @siddharthkaushal5194
    @siddharthkaushal5194 Год назад

    This is a really great video! Thanks for posting :)

  • @MadridistaUlle
    @MadridistaUlle Год назад

    Brilliant stuff! The graphics were especially helpful!

  • @JanSanono
    @JanSanono 2 года назад

    you're a legend mate, thanks so much!

  • @jorgeheribertochavezrosale1717
    @jorgeheribertochavezrosale1717 2 года назад

    You explain very well!!😊

  • @almaarmenta4779
    @almaarmenta4779 5 месяцев назад

    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!

  • @MsCarolina143
    @MsCarolina143 2 года назад

    Such a well-explained video. Thank you! The visualization and explanation of the various axes was especially helpful!

  • @qinghuafeng1705
    @qinghuafeng1705 2 месяца назад

    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  2 месяца назад +1

      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 2 месяца назад

      @@NickHuntingtonKlein Thank you so much! I appreciate your quick reply!

  • @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 года назад +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"

  • @scramah195
    @scramah195 Год назад

    great graphic at 8:15

  • @jooyoungkim3224
    @jooyoungkim3224 Год назад

    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  Год назад

      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 года назад +1

      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!

  • @JOHNSMITH-ve3rq
    @JOHNSMITH-ve3rq 2 года назад +1

    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  2 года назад +1

      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

  • @Jorissim0
    @Jorissim0 Год назад

    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  Год назад +1

      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 Год назад

      @@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  Год назад +1

      @@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 Год назад

      @@NickHuntingtonKlein okay, thanks a lot!

  • @manuelvaldes6029
    @manuelvaldes6029 3 года назад

    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  3 года назад +2

      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 3 года назад

      @@NickHuntingtonKlein thank you!

  • @impieman10
    @impieman10 3 года назад

    I see that this video came out after the plm video. (ruclips.net/video/2igMNODFypk/видео.html)
    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 ruclips.net/video/bQZGDKrbHoA/видео.html

  • @PABLO-oq1kt
    @PABLO-oq1kt 3 года назад

    I would like french people explaining this 😢