How to do Fixed effect and random effect panel regression in Stata

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

КОМЕНТАРІ • 50

  • @youk33
    @youk33 6 років тому +22

    THANK YOU, you have saved my dissertation

  • @alizasajid1815
    @alizasajid1815 2 роки тому +1

    sir my data is sorted not only by year but week and months. When i choose only year it says repeated time values in the panel. Can you help me

  • @abrahamcharles8895
    @abrahamcharles8895 4 роки тому +5

    Thank you so much! But how do we interpret the r square in fixed effect as we have three of them (between, within and overall)??

  • @kaym6086
    @kaym6086 3 роки тому +4

    Thank you, thank you, thank you!!! I am an undergraduate student doing research and am learning STATA on my own! This has been incredibly helpful!

  • @grounded.growing.and.glowing
    @grounded.growing.and.glowing 4 роки тому +4

    Thank you Dr. Sarveshwar Inani! This was a very helpful video. And I loved that you called us your friends!

  • @dennisajala7544
    @dennisajala7544 7 місяців тому +1

    Thanks alot.

  • @shanzagull8576
    @shanzagull8576 4 роки тому +1

    egen Country1=group(Country) ..this command is not working on my stata..i have apannel data but its not working..now pleas tell me what i do?

    • @Chairmoe_analytics
      @Chairmoe_analytics 5 місяців тому

      Use encode country, gen (country1). It will work

  • @dka9756
    @dka9756 6 місяців тому

    Hi, I have 2 dependent variables that I want to test separately, Can I run the Hausman test for both of them separately?

  • @ruponbhowmick1722
    @ruponbhowmick1722 4 дні тому

    Thank you sir
    Sir i run random effect model but here one variable omited by software. Why this?

  • @jenli0426
    @jenli0426 4 роки тому +1

    Hi, thank you for the video! May I know how do I create year-month * country fixed effect? My year-month variable is in '2010Jan' form, and i try to create by adding i.country*yearmonth, and no observation is produced.
    Thank you for your time!

  • @mahabubrahman9432
    @mahabubrahman9432 7 років тому +2

    Hi, Thanks a million for your videos. they are very useful. could you please upload videos on PCSE,FGLS and System GMM.

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

    Please share your datasets

  • @Pooh991
    @Pooh991 7 років тому +1

    Hi Sarveshwar! Your video is definitely very informative and really helpful, congratulations for your initiative! I´ve two questions, however that I would like to clarify and I would greatly appreciate if you could help me:
    1- For fixed effects we are considering that each sector is different from each other, so how can I add control variables (in this case dummy variables) into my analysis? I´m asking this because I did see you approaching the control variables on your commands.
    2- How can I identify R² and R² adjusted based on the results that State provide?
    Again Sarveshwar, thanks for your video and congratulations for your initiative!

  • @md.shakhaowathossin9990
    @md.shakhaowathossin9990 4 роки тому

    xtcsd, pesaran abs
    command xtcsd is unrecognized
    r(199);
    This report has been provided by Stata when I am going to test Pesaran. Why? What can I do now?
    Again,
    xttest3
    command xttest3 is unrecognized
    r(199);
    This report has been provided by Stata when I am going to test Heteroskedasticity. Why? What can I do now?

  • @AmeenKhan-ls6mw
    @AmeenKhan-ls6mw 7 років тому +2

    dear you explain things so clearly ... but my question is why you take log for every observation?

    • @DS-sc1nd
      @DS-sc1nd 5 років тому

      turning the variable into log means that you interpret changes in the variables in terms of percentage, not unit change. For example, instead of interpreting it as "increase in X number of televisions increases GDP of a country by Y dollar", you interpret "increase in X % of television density increases GDP of a country by Y %." Log gives a more meaningful interpretation. Hope this helps!

  • @lewisneville6393
    @lewisneville6393 4 місяці тому

    Thank you so much, I'm using stata for my final year dissertation and have been trying to work out how to do this for so long. Great content!

  • @ngocpopcorn
    @ngocpopcorn 4 роки тому

    If I ran Random effect and the model still contained autoregression problem after testing, how can I fix it ? :( please answer my question i am dying in my dissertation 😢

  • @aditchopra4649
    @aditchopra4649 4 роки тому

    Hi
    You didn't add a dummy for each of the countries under observation. So how do you interpret the effect on each of the countries in the regression equation considering you only have coefficients for your x variable (beta 1) and your intercept (beta 0). How would this fit into the entire regression equation for the FEM which should have a coefficient for each of the N-1 dummies for the N countries under consideration?

  • @Dr_Shiny
    @Dr_Shiny 5 років тому

    But Sir you didn't creat at Dummies for these countries individual effects, as you mentioned and showed in the previous lecture.

  • @346saadkhan
    @346saadkhan 10 місяців тому

    ppt

  • @shamsunnahar2294
    @shamsunnahar2294 4 роки тому

    Thank you very much. Do you have any video on 2D cluster regression on panel data? If yes please send me the link

  • @XX-11235
    @XX-11235 3 роки тому

    How do you figure out the correct specification of the model? I.e you know it's fixed effects but simple linear model doesn't give any significance to your variables? What transformation should you consider? How do you find out whether some variables have a nonlinear impact or that there is some sort of an interaction between 1 or more variables (e.g. y=a+bx+cz+dxz)

  • @haohoangkim3247
    @haohoangkim3247 8 років тому +2

    Thank you very much! Can you give me your data? i really need them! Please!

    • @SarveshwarInani
      @SarveshwarInani  8 років тому +1

      You are welcome...These data are available on World bank website on World bank indicators.

    • @haohoangkim3247
      @haohoangkim3247 8 років тому

      I see, thanks a lot!

  • @priyeshvpplus
    @priyeshvpplus 8 років тому +1

    Hello Sir,Can we do the robust error check for random effect regression also ??

  • @danielananta2742
    @danielananta2742 6 років тому

    hello comrade, Could you show us how to make chow and LM test with STATA? THANKS from UK

  • @hw2810
    @hw2810 4 роки тому

    Hi, How can you use a time dummy (either 0 or 1) as the time variable without getting the error message "repeated time values within panel"? Thanks!

    • @fueledbyshai
      @fueledbyshai 4 роки тому

      Do you include a unit for frequency? It should default to just 1 unit if you exclude the delta option.

  • @boburmadirimov829
    @boburmadirimov829 6 років тому +1

    Sir, God bless you, you saved me a lot of time!

  • @cyrinekarray4309
    @cyrinekarray4309 7 років тому

    how we can do a linear regression, if variables (Yt and Xt-1) pleaaaase

  • @minma5430
    @minma5430 4 роки тому

    thank you a million Dr. Inani! you saved me! your video is way way way clearer than what my professor had given in the class.

  • @KiraraMagic
    @KiraraMagic 5 років тому

    Thank you, you saved my life

  • @lizi9019
    @lizi9019 8 років тому

    what is "yearly"? what does it do? I is it a standardized specification parameter with xtset command?

  • @ShahbazKhan-yq7bw
    @ShahbazKhan-yq7bw 7 років тому

    Hi Sir, Can we run fixed effect or random effect for cross section data in a similar way?

  • @Garrettthethief
    @Garrettthethief 6 років тому

    Thank you. The vce option also alows bootstrap instead to ensure the comparability between great and small samples.

  • @drisstsouli7150
    @drisstsouli7150 3 роки тому

    i like thanks a lot

  • @hermanusbernardusswart4690
    @hermanusbernardusswart4690 3 роки тому

    Hi friend. :)

  • @mrmehmets4557
    @mrmehmets4557 8 років тому +2

    Thank you soooo much!

  • @jessyjkn
    @jessyjkn 3 роки тому

    So helpful!

  • @jsegovia
    @jsegovia 5 років тому

    Thank you so much, this helped a ton!

  • @albertotorres5215
    @albertotorres5215 8 років тому +1

    I love you man this is so helpful

  • @nurehh2271
    @nurehh2271 6 років тому

    Thank you Sir!

  • @abcdefghijk1056
    @abcdefghijk1056 6 років тому

    very helpful

  • @cadenhong245
    @cadenhong245 7 років тому

    very helpful

  • @jose-kh3uh
    @jose-kh3uh 7 років тому

    You're the man