I am running Stata 14.2. I have panel data on 49 countries between 1990-2013, with the data averaged into three years so there are eight time periods. I am looking at the effect of foreign aid (ODA) on measures of poverty (he1, he2 as the dependent variable). I am using xtabond2 to overcome the endogeneity of aid, following Roodman (2007) - attached - as a guide.
xtset id year
panel variable: id (strongly balanced)
time variable: year, 1990 to 2011, but with gaps
delta: 1 unit
My code is:
xtabond2 he1 L.he1 oda gdp gin opn fin inf dem, gmm(he1 oda, lag(2 2)) iv(L.gdp gin opn fin inf dem) nolevel small
No observations.
r(2000);
The data is not in string, and there are 392 observations per variable (balanced).
ctry str24 %24s Ctry
year int %ty
oda float %9.0g
opn float %9.0g
fin float %9.0g
ind float %9.0g
gdp float %9.0g
gin float %9.0g
inf float %9.0g
age float %9.0g
agr float %9.0g
edu float %9.0g
dem float %9.0g
he1 float %9.0g
po1 float %9.0g
sq1 float %9.0g
he2 float %9.0g
po2 float %9.0g
sq2 float %9.0g
id byte %8.0g
I have attached a screenshot of the first lines of my data. Any help would be much appreciated.
xtset id year
panel variable: id (strongly balanced)
time variable: year, 1990 to 2011, but with gaps
delta: 1 unit
My code is:
xtabond2 he1 L.he1 oda gdp gin opn fin inf dem, gmm(he1 oda, lag(2 2)) iv(L.gdp gin opn fin inf dem) nolevel small
No observations.
r(2000);
The data is not in string, and there are 392 observations per variable (balanced).
ctry str24 %24s Ctry
year int %ty
oda float %9.0g
opn float %9.0g
fin float %9.0g
ind float %9.0g
gdp float %9.0g
gin float %9.0g
inf float %9.0g
age float %9.0g
agr float %9.0g
edu float %9.0g
dem float %9.0g
he1 float %9.0g
po1 float %9.0g
sq1 float %9.0g
he2 float %9.0g
po2 float %9.0g
sq2 float %9.0g
id byte %8.0g
I have attached a screenshot of the first lines of my data. Any help would be much appreciated.
Comment