I am having trouble estimating a negative binomial panel regression in Stata. The error returned is 2000-no observations and I suspect that it is due to having some variables for certain years that are specified in the model that have no data attributed. I'm sure a simple modification of the code is required but I've been racking my brain trying to figure out how to adjust the line of code. I've attached a snapshot of the dataset. This is the code that I'm specifying. Apologies for not using dataex, the number of lines in the dataset are over 500.
by year, sort : xtnbreg annual_new_jobs_created pct_allagesinpoverty total_black
> _residents pct_hsgrad pct_somecollegenodegree pct_associates pct_associates pct_
> bachelors pct_graduateofprofessionaldegree logroadhome logpafund logiafund, re
----------------------------------------------------------------------------------
-> year = 1998
no observations
----------------------------------------------------------------------------------
-> year = 1999
no observations
----------------------------------------------------------------------------------
-> year = 2000
no observations
----------------------------------------------------------------------------------
-> year = 2001
no observations
----------------------------------------------------------------------------------
-> year = 2002
no observations
----------------------------------------------------------------------------------
-> year = 2003
no observations
by year, sort : xtnbreg annual_new_jobs_created pct_allagesinpoverty total_black
> _residents pct_hsgrad pct_somecollegenodegree pct_associates pct_associates pct_
> bachelors pct_graduateofprofessionaldegree logroadhome logpafund logiafund, re
----------------------------------------------------------------------------------
-> year = 1998
no observations
----------------------------------------------------------------------------------
-> year = 1999
no observations
----------------------------------------------------------------------------------
-> year = 2000
no observations
----------------------------------------------------------------------------------
-> year = 2001
no observations
----------------------------------------------------------------------------------
-> year = 2002
no observations
----------------------------------------------------------------------------------
-> year = 2003
no observations
Comment