Time Fixed Effect | Year Fixed Effect | Country Fixed Effect in Stata Part 3

Поділитися
Вставка
  • Опубліковано 2 жов 2024

КОМЕНТАРІ • 19

  • @thedatahall
    @thedatahall  9 місяців тому +1

    The following link contains the files used in this video:
    payhip.com/b/iR9Tn

  • @Vyquach0
    @Vyquach0 3 місяці тому

    after concluding that we have time and entity fixed effect in the model, I test Autocorrelation and heteroscedasticity both exist in FEM, what should I do next, please replyyyyyyy

  • @ammaralghamri4901
    @ammaralghamri4901 7 місяців тому

    excellent explanation, excellent presentation. absolutely outstanding

  • @SurenAntonPerera
    @SurenAntonPerera 8 місяців тому

    Thanks so much for clear and precise guidance.

  • @Ganieirfan
    @Ganieirfan Рік тому

    Hello Sir,
    Thank you so much for your wonderful videos on regression using stata. You have made it so easy to understand panel data analysis.
    I have one question. I am having panel data where I have set comapny code and year as panel variables using xtset command. Now when I choose between random effects and fixed effects hausman test suggests fixed effects p

    • @thedatahall
      @thedatahall  Рік тому +1

      Hi, thanks for the appreciation. As explained in part 1 or 2, we cannot use time invarient variables with fe option in xtreg. Because industry is not changing from one year to another therefore the xtreg with fe option will ommit the perfect collinear variables. In this case u should use reg y x i.industry i.firm.

    • @Ganieirfan
      @Ganieirfan Рік тому

      @@thedatahall Thank you for responding. I have more than 700 firms and for 22 years. if i use i.firm it doesn't show me results because of number of firms. Is it correct to use xtreg with i.industry and re option, even though hausman test doesn't suggest re.?

    • @thedatahall
      @thedatahall  Рік тому

      Because there r lots of dummies it will take time to show the results. Or u can generate dummies manually for each firm and input them in the regression. I have discussed this in part 2. But it is not correct to use random effect

    • @Ganieirfan
      @Ganieirfan Рік тому

      @@thedatahall are you saying that if I use firm dummy it takes care of fixed effects which we use normally and putting industry dummy with it takes care of industry effects? (As simple 'reg" command doesn't take into consideration the panel structure of data. Can I use xtreg fe and use interaction between industry dummy and my independent variable, eg (i.ind*x) will that be correct as it will take care of omission due to multicolineraty using fe with xtreg and industry dummy. I am sorry to ask too many questions, may be stupid too.

    • @thedatahall
      @thedatahall  Рік тому

      Have you watched all the 5 parts? In these videos i have explained that taking firm dummies with regress command or using xtreg with h fe option are same. In finance papers its common to use industry fixed effect but what they do is regress y x i.industry. there is no way to use xtreg,fe and also incorporate any time invarient variables. Even if u do xtreg y x,fe i.e. without industry fixed effect, that is fine too because the main idea of firm fixed effect was to adjust for time invarient variables, so it automatically takes care of that.