Hello, I am very new to Stata, I'm currently trying to do a regression using panel, the command I'm using is xtreg taxa_obito taxa_cf
The variable taxa_cf shows the rate of the number of medical facilities at the neighborhood i [(number of facilities/city population)*100.000, (panel variable)] in the month j (time variable), I want to see the effect of the growth in number of medical facilities in the death by diabetes mellitus rate ( taxa_obito is the diabetes mortality rate by neighborhood and month), the time variable (date) begins in january 2006 and ends in december 2016, and there are 158 neighborhoods.
Before 2009, there were literally no medical facilities in those neighborhood, so there are a lot of zeros in the variable taxa_cf, also, even today not all neighborhoods have received medical facilities, so there are still some zeros after 2009, I first thought of doing a diff in diff approach, but the problem is that the treatment was gradual (e.g., a certain neighborhood received 1 medical facility in january 2009, then another in may 2011, then another in june 2014 and so on.. and the more facilities a certain neighborhood have the more impact they make, supposedly)
I could merge the neighborhoods into bigger locations called "planning regions" (N would become something like 15 instead of 158), this would make it so that the variable taxa_cf would always be positive after october 2010, but I'm not sure if losing the 158 locations would be wise..
Honestly I'm lost here, I gladly welcome all tips, hints, critiques, anything.
Thank you all.
The variable taxa_cf shows the rate of the number of medical facilities at the neighborhood i [(number of facilities/city population)*100.000, (panel variable)] in the month j (time variable), I want to see the effect of the growth in number of medical facilities in the death by diabetes mellitus rate ( taxa_obito is the diabetes mortality rate by neighborhood and month), the time variable (date) begins in january 2006 and ends in december 2016, and there are 158 neighborhoods.
Before 2009, there were literally no medical facilities in those neighborhood, so there are a lot of zeros in the variable taxa_cf, also, even today not all neighborhoods have received medical facilities, so there are still some zeros after 2009, I first thought of doing a diff in diff approach, but the problem is that the treatment was gradual (e.g., a certain neighborhood received 1 medical facility in january 2009, then another in may 2011, then another in june 2014 and so on.. and the more facilities a certain neighborhood have the more impact they make, supposedly)
I could merge the neighborhoods into bigger locations called "planning regions" (N would become something like 15 instead of 158), this would make it so that the variable taxa_cf would always be positive after october 2010, but I'm not sure if losing the 158 locations would be wise..
Honestly I'm lost here, I gladly welcome all tips, hints, critiques, anything.
Thank you all.
Comment