Mastering Fixed-Effects Regression in R

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024

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

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

    Download the R script from this video here: data-heroes-2.ck.page/fixed_effects_regression

  • @ajl_47
    @ajl_47 Год назад +1

    Great video, needed help with a project that involved lots of panel data analysis. Cheers

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

    Excellent video. Thank you for sharing. What do "within", "between", "random", "fd" and "hd" mean? what do I choose for a fixed effects model?

  • @stephenogbodo1328
    @stephenogbodo1328 3 года назад +1

    Thank you. This was very clear, straightforward and helpful.

  • @RR-wc2xy
    @RR-wc2xy Год назад +1

    How should one interpret negative r-squared?

  • @IrisSmiderle
    @IrisSmiderle 3 месяца назад

    Hello! What about the "effect" option? I found that in my code it is necessary to specify [effect = "twoways"] when accounting both for state and year fixed effects, otherwise it just accounts for the first specified (in this example "state").

  • @luizguilhermedefreitasbord5802
    @luizguilhermedefreitasbord5802 Год назад +1

    That was really helpful, thanks

  • @EduardoGallizzi
    @EduardoGallizzi 4 года назад

    Great video, Diogo! Could you give me some idea about a topic for my bachelor thesis in Econ, having background in finance + R? Wanna write something related to commodities but I'm a bit lost. I to intend mention it in my application for a Msc. in finance later on... Abraços!

    • @EduardoGallizzi
      @EduardoGallizzi 4 года назад

      @@DataHeroes No worries, thanks for your reply. Keep up with the good work!

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

    Hello Sir, could you please explain why there is no intercept in the r output of the fixed effect model? Also, what is the interpretation of a negative Adj. R square?

    • @arifmemovic3383
      @arifmemovic3383 Год назад +1

      When you estimate a "within" effects model, each unit of analysis has its own intercept. For example, if your unit of analysis is countries, each country will have its own intercept. You are not comparing across countries, but change within a single country over time.

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

      @@arifmemovic3383 Thank you Sir

  • @antoniorodriguezandres161
    @antoniorodriguezandres161 4 года назад

    But this model is mis-specified as there are many other control variables needed. Based on Becker's theory you need a key variable as the clear up rate. Please check John Lott. Indeed, I am not sure if it would be better to consider violent crimes as count data instead of using rates

    • @svl8389
      @svl8389 2 года назад +1

      i guess the point of this one is just to teach you how to add fixed effects into the model.....

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

    Thanks for the video. I am pretty new to the topic and was wondering if it would make sense to do a fixed effects regression in either of the following cases:
    1. When the independent variable is different for every observation
    2. When the independent variable can only be in one of two groups (and therefore is a dummy)
    Would appreciate your reply a lot, thank you!

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

      Definitely for the second case. Not sure I get the first. Is it a continuous variable? The key idea of fixed effects is when there are differences among entities, like countries, companies or groups.

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

    switzerland is not part of the EU therefore also not the richest country of the EU