Random effects panel regression and mixed effects regression in Stata: A comparison of results

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ก.ย. 2024
  • In this video, I analyze panel data using the 'xtreg' and 'mixed' commands using Stata. Both models assume randomly varying intercepts. I demonstrate the essential equivalence of results from these two methods. You can download a copy of the Stata data file here ( drive.google.c... ) and a copy of the text file referenced in the video here ( drive.google.c... ).

ความคิดเห็น • 10

  • @user-ni4tv6xq7f
    @user-ni4tv6xq7f ปีที่แล้ว

    Thank you for the video. I have a question regarding control variables. How to include them in the code? Do I treat them like other predictors in the code by typing them next to them?

  • @Mohakule3
    @Mohakule3 ปีที่แล้ว

    what if the overall p value of chibar(01) is not significant for mixed simple linear regression

  • @jinlinliu1200
    @jinlinliu1200 4 ปีที่แล้ว

    Thanks, Mike.

  • @wasafisafi612
    @wasafisafi612 3 ปีที่แล้ว

    Thank you so much for your video

  • @hamzahh9932
    @hamzahh9932 ปีที่แล้ว

    excuse me, in ml random effect model, how to find r-square value??

  • @wasafisafi612
    @wasafisafi612 3 ปีที่แล้ว

    Thank you so much

  • @anuradhasaikia9305
    @anuradhasaikia9305 2 ปีที่แล้ว +1

    when to use mixed effects model?

    • @jingnanli8009
      @jingnanli8009 ปีที่แล้ว

      when reviewer asks to do so

  • @abujad4226
    @abujad4226 2 ปีที่แล้ว

    why only id ? where is year ?

    • @mikecrowson2462
      @mikecrowson2462  2 ปีที่แล้ว

      Hi Abu, for this model I was not modeling the outcome as a function of time per se. Oftentimes folks do want to include time as a predictor to model growth (or decay or some time of non-linear change) over time. I kept things rather simple in this demo. But you certainly can add in predictors to model change as a function of time. Cheers.