Hi,
I ran the following to perform the Arellano-Bond GMM estimation as I am concerned about the potential violation of strict exogeneity assumption in my dynamic panel data model previously constructed:
quietly: xtabond2 lnGDPper l(1/4).lnGDPper high_frac_dem low_frac_dem i.year, gmmstyle(lnGDPper, laglimits(2 .)) gmmstyle(high_frac_dem, laglimits(1 .)) gmmstyle(low_frac_dem, laglimits(1 .)) ivstyle(i.year, p) noleveleq robust nodiffsargan
local adjR2arellano=e(r2_a)
ttest low_frac_dem == high_frac_dem
return list
local pvalarellano = r(p)
outreg2 using "`path'/Arellano.xls", replace bdec(3) rdec(3) aster nocons label ctitle("Log of GDP per capita") keep(low_frac_dem high_frac_dem lag1_lnGDPper lag2_lnGDPper lag3_lnGDPper lag4_lnGDPper lnGDP_trans)
The final table I obtained contains only high_frac_dem and low_frac_dem variables. I'm not sure where my command is going wrong in not incorporating the lagged variables in my table. Also, if I add:
addstat("p-value, H0:bL=bH", `pvalarellano', "Adjusted R-sq", `adjR2arellano')
at the end of the above xtabond2 command, I'm getting invalid syntax error r(198); Could someone please clarify these two?
Thank you!
I ran the following to perform the Arellano-Bond GMM estimation as I am concerned about the potential violation of strict exogeneity assumption in my dynamic panel data model previously constructed:
quietly: xtabond2 lnGDPper l(1/4).lnGDPper high_frac_dem low_frac_dem i.year, gmmstyle(lnGDPper, laglimits(2 .)) gmmstyle(high_frac_dem, laglimits(1 .)) gmmstyle(low_frac_dem, laglimits(1 .)) ivstyle(i.year, p) noleveleq robust nodiffsargan
local adjR2arellano=e(r2_a)
ttest low_frac_dem == high_frac_dem
return list
local pvalarellano = r(p)
outreg2 using "`path'/Arellano.xls", replace bdec(3) rdec(3) aster nocons label ctitle("Log of GDP per capita") keep(low_frac_dem high_frac_dem lag1_lnGDPper lag2_lnGDPper lag3_lnGDPper lag4_lnGDPper lnGDP_trans)
The final table I obtained contains only high_frac_dem and low_frac_dem variables. I'm not sure where my command is going wrong in not incorporating the lagged variables in my table. Also, if I add:
addstat("p-value, H0:bL=bH", `pvalarellano', "Adjusted R-sq", `adjR2arellano')
at the end of the above xtabond2 command, I'm getting invalid syntax error r(198); Could someone please clarify these two?
Thank you!
Comment