I am trying to better understand when to use a fixed effects model and when to use a random effect model for panel data. I am a bit confused on the difference between xtlogit with re and melogit. Guides online seem to suggest that they produce the same result: here and here. And for example, they said the following:
"The xtlogit and melogit results are identical other than some very slight differences caused by using different algorithms. Both differ somewhat from the logit results, which ignore the multilevel nature of the data. Among other things the multilevel model results show that having a spouse and working more hours tend to reduce the likelihood of being in poverty, while having a child or being black tend to increase the likelihood."
However, xtlogit (per their documentation) produces a fixed or random effects model, and melogit produces a mixed effects model. Can someone help clarify this? Thanks!
"The xtlogit and melogit results are identical other than some very slight differences caused by using different algorithms. Both differ somewhat from the logit results, which ignore the multilevel nature of the data. Among other things the multilevel model results show that having a spouse and working more hours tend to reduce the likelihood of being in poverty, while having a child or being black tend to increase the likelihood."
However, xtlogit (per their documentation) produces a fixed or random effects model, and melogit produces a mixed effects model. Can someone help clarify this? Thanks!
Comment