可以采用 estat endogenous 命令检验内生性问题。下面是一个以小例子:
global cx "ari teil pruyc prryc prujc"
global px " rses "
global ivx " pzgdp wjym wjymn"
xi: ivregress gmm pepce $px $cx ($ivx=L(1/3).($ivx)) i.year i.id $opt
estat endogenous // 内生性检验
estadd scalar C_endog = r(C)
estadd scalar p_C = r(p_C)
est store m1
至于第二个问题,存在很强的主观性。由于涉及到相关的理论,我无法给予太多的建议。