+ Reply to Thread
Results 1 to 3 of 3

Thread: Help with mixed effects logistic regression in STATA

  1. #1
    Points: 27, Level: 1
    Level completed: 54%, Points required for next Level: 23

    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help with mixed effects logistic regression in STATA



    Hello,

    I'm new to using mixed effects modeling, and I'm running a mixed effects logistic regression in STATA as my data were collected at different schools. Everything looked good when I ran the model, but after using multiple imputation to handle missing data, the random effects portion of the output looked strange (i.e., much larger standard error and no confidence interval). Here is the code and portion of the output:

    mi estimate: xtmelogit y i.x1 x2 x3 x4 x5 || school:
    .
    .
    .
    ------------------------------------------------------------------------------
    Random-effects Parameters | Estimate Std. Err. [95% Conf. Interval]
    -----------------------------+------------------------------------------------
    school: Identity |
    sd(_cons) | .000012 916.0454 0 .
    ------------------------------------------------------------------------------

    Any ideas as to why this might be happening?

  2. #2
    RoboStataRaptor
    Points: 7,402, Level: 57
    Level completed: 26%, Points required for next Level: 148
    bukharin's Avatar
    Location
    Sydney, Australia
    Posts
    1,026
    Thanks
    9
    Thanked 243 Times in 236 Posts

    Re: Help with mixed effects logistic regression in STATA

    I'm not entirely sure - you tend to get this kind of odd result (tiny SD of random intercept with huge standard error) when you don't have enough data points. If the model worked well without the imputations, perhaps there was a problem with your imputations, or perhaps you don't have enough of them. In general it's helpful if you show us the commands and output you used to get to this point - we might be able to detect the problem.

    Incidentally if you don't plan to make the model more complex you don't need to use -xtmelogit-, you can use -xtlogit- which is a lot faster (and therefore makes it easier to get to the bottom of your problem):
    mi xtset school
    mi estimate: xtlogit y i.x1 x2 x3 x4 x5

  3. #3
    Points: 27, Level: 1
    Level completed: 54%, Points required for next Level: 23

    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Help with mixed effects logistic regression in STATA


    Thank you for the advice. I will try xtlogit and see if that helps me find where things went wrong.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts








Advertise on Talk Stats