Dear stata users,
I have a problem with the estimation of robust standard errors running a random effects model with a binary dependent variable.
I use a very simple model to show the problem. If I run the following model on my 7-wave panel data there are no problems (age is a continious variable that varies over time, east is a time-constant dummy, n is sufficiently large and there is variation in every variable with infertile)
But if I request the same model with robust standard errors I receive the error message that the "calculation of robust standard errors failed"
I use stata/SE14.2 with the most recent updates. I found posts on statalist from last year that had similar problems. For example here: http://www.statalist.org/forums/foru...tic-regression
And here: http://www.statalist.org/forums/foru...-calculate-bug
The problem appears to have something to with the factor variable notation. While writing this post I used the same command without the factor variable notation and it appears to have worked:
I tried it with more complex models (more variables) and it works as long as I dont mark the binary variables with i.
The problem is that this work-around doesnt help with categorial variables with more than two categories (I will generate dummies for these if necessary). I wonder if stata now really did want I wanted it do? Any comments and suggestions to what is happening here are welcome. I hope I did not miss any problem with my model. I assume this is of interest to other stata users as well.
Jasmin
I have a problem with the estimation of robust standard errors running a random effects model with a binary dependent variable.
I use a very simple model to show the problem. If I run the following model on my 7-wave panel data there are no problems (age is a continious variable that varies over time, east is a time-constant dummy, n is sufficiently large and there is variation in every variable with infertile)
Code:
xtlogit infertile2 c.age i.east2 if filter2==1, re or
Code:
xtlogit infertile2 c.age i.east2 if filter2==1, re or vce(robust)
And here: http://www.statalist.org/forums/foru...-calculate-bug
The problem appears to have something to with the factor variable notation. While writing this post I used the same command without the factor variable notation and it appears to have worked:
Code:
xtlogit infertile2 age east2 if filter2==1, re or vce(robust)
The problem is that this work-around doesnt help with categorial variables with more than two categories (I will generate dummies for these if necessary). I wonder if stata now really did want I wanted it do? Any comments and suggestions to what is happening here are welcome. I hope I did not miss any problem with my model. I assume this is of interest to other stata users as well.
Jasmin
Comment