Hi!
I'm with a doubt that i already saw the answer on the forum, but on my code is not working.
I'm trying to estimate a model with first difference, so im doing:
A example of my base:
What i'm doing:
xtset cod_munic ano, delta(5)
xtreg pib prop_serv , fe
xtreg d.pib d.prop_serv
But the stata is telling me that i have insufficient observations, but i know that i have the same number of observations to the two years.
The function xtreg works with just two years or i have to try another way??
Thanks!!
I'm with a doubt that i already saw the answer on the forum, but on my code is not working.
I'm trying to estimate a model with first difference, so im doing:
A example of my base:
ano | cod_munic | pib | prop_serv |
2002 | 2800100 | 5509.195 | .7160816 |
2007 | 2800100 | 10907.59 | .7550546 |
2002 | 2800209 | 44256.39 | .7147408 |
2007 | 2800209 | 86428.34 | .689031 |
What i'm doing:
xtset cod_munic ano, delta(5)
xtreg pib prop_serv , fe
xtreg d.pib d.prop_serv
But the stata is telling me that i have insufficient observations, but i know that i have the same number of observations to the two years.
The function xtreg works with just two years or i have to try another way??
Thanks!!
Comment