大家好,我第一次做面板数据的工具变量法,对于工具变量的设置不是很清楚。我想分析中国出口是否挤出了他国出口,所有的数据都是02-15年的。在引力模型的基础上,在解释变量里加入了中国出口ln_china_exp这一变量,然而该变量有内生性,我想用中国与出口国的距离ln_china_dist、中国的GDP ln_china_GDP与中国的经济自由度评分chinascore作为工具变量,但是在我定义的这三个工具变量在第一阶段回归中,都被删除了。请问我是哪里出错了?是工具变量没有随时间变化吗?
这是定义的语句:
gen ln_china_exp=ln(tradevalue) if reporteriso3=="CHN"
gen ln_china_dist=ln(distw) if reporteriso3=="CHN"
gen chinascore=reporterisoscore if reporteriso3=="CHN"
gen ln_china_gdp=ln(gdp_o) if reporteriso3=="CHN"
这是回归的语句:
xtivreg ln_trade (ln_china_exp= ln_china_dist ln_china_gdp chinascore) ln_gdp_exp ln_gdp_imp ln_distance contig comlang_off colony comcol ,re