I am trying to run a truncated negative binomial model using survey data where my dependent variable is hospital discharges. When I run the model specifying the survey data, the model doesn't do anything, even if I leave it to run overnight. (FYI the range of the dependent variable when truncated at 0 is 1 to 17). Code/output:
svy linearized, subpop(SPD): tnbreg hptotdis i.yearind i.sex i.race i.hispyn i.region i.married ib4.education i.natstat c.pcs ib1.agecat ib4.povcat i.insstat1 if hptotdis>0
(running tnbreg on estimation sample)
If I run this a a truncated poisson model, the model works.
Just to see what would happen, I ran the negative binomial model without the svy specification and found that the model didn't converge.
Is there something I am doing wrong or is this an indication that a Poisson model is a better fit?
Related Posts with Truncated negative binomial model not running/converging
Two stage least squareHello, please I need the command to make 2SLS . …
Histograms in loopHello Sir Have some issues with including titles in histograms in a loop. The code is running but n…
Linking person-year records across different people (using NLSY97)Aloha, I am using the NLSY97 and doing a project where I need to link siblings within the data. I ha…
Creating new IDs with a set number of observationsHello all, I am trying to run a simulation on a dataset that contains user reviews. I have a select…
Flag individuals who have repeated a grade in schoolHi statalist, Please consider the following example data: Code: * Example generated by -dataex-. T…
Subscribe to:
Post Comments (Atom)
0 Response to Truncated negative binomial model not running/converging
Post a Comment