Hi all,
While running a system GMM using xtabond2 , I came across the following error "invalid ivstyle". As I am quite new to xtabond2, I was hoping that someone could help me understand what's wrong with my code. I have unbalanced data of 48 countries and T=20.
My dependent variable is : infant mortality
My key independent variable is oda_gdp
Other explanatory variables are : gdp_pc infl trade FDI publichealthexp gini schoolenroll fertilityrate governance.
I consider all variables to be endogenous and include the time variable (year) as exogeneous.
Here is my command:
However I get the following error message, not sure to understand why this message pops. Does this have anything to do with the fact that time dummies shoud be created manually?
I'm also having a hard time understanding what's the best way to determine the lag limit (a b) and when should we use the ivstyle option with equation(level) or with equation(diff).
Thank you very much!
While running a system GMM using xtabond2 , I came across the following error "invalid ivstyle". As I am quite new to xtabond2, I was hoping that someone could help me understand what's wrong with my code. I have unbalanced data of 48 countries and T=20.
My dependent variable is : infant mortality
My key independent variable is oda_gdp
Other explanatory variables are : gdp_pc infl trade FDI publichealthexp gini schoolenroll fertilityrate governance.
I consider all variables to be endogenous and include the time variable (year) as exogeneous.
Here is my command:
Code:
xtabond2 log_infmort L1_log_infmort log_odagdp log_gdppc infl log_trade FDI log_healthexp log_gini log_schoolenroll log_fertilityrate governance i.year, gmmstyle (L1_log_infmort, lag(1 4) collapse) gmmstyle (log_odagdp log_gdppc infl log_trade FDI log_healthexp log_gini log_schoolenroll log_fertilityrate governance, lag(2 4) collapse), ivstyle(i.year, equation(level)) twostep robust small nodiffsargan
However I get the following error message, not sure to understand why this message pops. Does this have anything to do with the fact that time dummies shoud be created manually?
Code:
" invalid 'ivstyle'
Thank you very much!
Comment