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
Mulitple CV graphs for lasso/elasticnet estimatesHi, I am running different regularized estimators, elasticnet and linear lasso. I want to plot Cross…
Picking initial values for a specificDear all, I have an unbalanced panel of 57,910 observations of country, industries and year (2003-2…
Boxplot of ProbabilitiesI've created a score that predicts mortality. Does anyone know what lines of code to use to create …
Importing and Assigning Data By YearHello, I'm working on a research paper in which I'm examining the relationship between sea surface …
Deleting a row header from a customized tableI am creating a Table 1 using the "collect" command in Stata. I would like to have a "Total" row at …
Subscribe to:
Post Comments (Atom)
0 Response to Truncated negative binomial model not running/converging
Post a Comment