Hi,
I have a panel dataset consisting of 3,617 IDs where each ID has about 9-10 observations for it (it is an unbalanced panel with gaps). My Y is an over-dispersed count variable so I used xtnbreg, fe for my data and the estimator converged, but I now want to cluster standard errors at a particular level. Since xtnbreg does not have any option for clustering standard errors (or does it? perhaps I am wrong about that), I figured the only approach to take would be nbreg with i.id and clustered standard errors. I tried running just the simpler version of nbreg Y X i.year i.id without clustering standard errors, but it's been many many hours and it isn't converging--- we're on Iteration 39 now after ~14 hours of running. Should I assume it isn't going to converge at this point or just keep going? And if it isn't going to converge and the Y variable in question is definitely over dispersed, would it be better to use xtpoisson, fe instead,or would leaving it at xtnbreg, fe without clustering standard errors given that Y is over-dispersed?
Lastly, is there any literature I can refer to that helps me figure out why it is that a negative binomial fixed effects regression doesn't have a standard error clustering option whereas a poisson fixed effects regression does (or perhaps there is no conceptual reason and that's just how the command is built).
Thank you very much! I really appreciate it.
Regards,
Mansi Jain
Stanford University
Related Posts with Nbreg with i.id for fixed effects not converging
Problems with the Esttab commandDear Stata community, I have currently an issue with the esttab command. I want to run a loop of re…
How to estimate prevalences of an indicator over the years?Dear Statalist, My dataset presents the prevalence of a given indicator over 11 years (2007 to 2017…
Is there an alternative to gen and egen that will save as double if the number is large?Yesterday I realized that I have to set type to double before doing "gen" for large numeric variable…
Merge data1 to data2 between certain datesDear Stata Users, I need to merge data1 to data2 such that data1 is merged to data2 between two dat…
Query in STATAHi, I have values in my variable (tax_threshold) with many "0" values. I want to replace all the "0…
Subscribe to:
Post Comments (Atom)
0 Response to Nbreg with i.id for fixed effects not converging
Post a Comment