Hi everyone,
I'm using Stata 18 to estimate a Dynamic Panel Data with the System GMM ( two-step).
I'm analyzing the impact of trade openness on food security across 22 countries over the period 2010-2019.The variables used in the model are:
- Dependent variable: Food Supply variability as a proxy for food security, which is assumed to be endogenous (lagged dependent variable)
- Independent variable of interest: Trade (% of GDP) is used as a proxy to measure trade openness, and is assumed to be predetermined
- Control Variables: GDPconstant, Arableland, Agrprod, Rurpop, Popgr, GDPgr, Empagr, Infr, Exchange_r which are assumed to be exogenous
- Also year dummies are used as exogenous variables i.Year
I use system GMM to estimate the following model:
Code:
xtabond2 Food_supply L.Food_supply TO lnAgrprod Arableland Empagr lnGDPconstant Popgr Rurpop lnGDPgr Infr lnExchange_r y_2010-y_2019, gmm(L.Food_supply TO, collapse) iv(lnAgrprod Empagr lnGDPconstant Rurpop lnGDPgr Infr lnExchange_r y_2010-y_2019, eq(level)) nodiffsargan twostep robust small orthogonal
Is the code correct? I've read "How to do xtabond2.." from Roodman but find it hard to implement it. Regarding the instruments iv() I used all my control variables and year dummies which are assumed to be exogenous.
Can you help me check what's the problem in this code?
I'm using Stata 18 to estimate a Dynamic Panel Data with the System GMM ( two-step).
I'm analyzing the impact of trade openness on food security across 22 countries over the period 2010-2019.The variables used in the model are:
- Dependent variable: Food Supply variability as a proxy for food security, which is assumed to be endogenous (lagged dependent variable)
- Independent variable of interest: Trade (% of GDP) is used as a proxy to measure trade openness, and is assumed to be predetermined
- Control Variables: GDPconstant, Arableland, Agrprod, Rurpop, Popgr, GDPgr, Empagr, Infr, Exchange_r which are assumed to be exogenous
- Also year dummies are used as exogenous variables i.Year
I use system GMM to estimate the following model:
Code:
xtabond2 Food_supply L.Food_supply TO lnAgrprod Arableland Empagr lnGDPconstant Popgr Rurpop lnGDPgr Infr lnExchange_r y_2010-y_2019, gmm(L.Food_supply TO, collapse) iv(lnAgrprod Empagr lnGDPconstant Rurpop lnGDPgr Infr lnExchange_r y_2010-y_2019, eq(level)) nodiffsargan twostep robust small orthogonal
Is the code correct? I've read "How to do xtabond2.." from Roodman but find it hard to implement it. Regarding the instruments iv() I used all my control variables and year dummies which are assumed to be exogenous.
Can you help me check what's the problem in this code?
Comment