起因是发现附带twostep 选项后,sargan检验一直是1。然后发现number of instrument一直大于number of group。其中maxldep设置为1,endog和pre的lag也都设为lag(0,1),但是number of instrument还是很大。大概是number of group的三倍。然后去掉了所有endog和pre后,可以得到一个正常一些sargan的值,此时number of instrument和number of group的值类似。
我做的是30个省的省级面板数据,仅用被解释变量滞后一期做解释变量。然后系统gmm是用滞后期做工具变量,这样,一旦设置内生变量和前定变量,每定一个工具变量增加量几乎都等于截面数,那这样工具变量会很多,很容易大于截面数,这样岂不是sargan很容易就成为1变得过度接受原假设了么……有没有什么办法可以在保留前定变量和内生变量的基础上,使得产生的工具变量个数尽可能减少……求问呐
附:回归命令
xtdpdsys cnly ,lag(1) maxldep(1) endog(fb,lag(0,1)) pre(c,lag(0,1)) twostep vce(r)
可以设置。
ivstyle() specifies a set of variables to serve as standard instruments, with one column in the instrument matrix per variable. Normally, strictly exogenous regressors are included in ivstyle options, in order to enter the
instrument matrix, as well as being listed before the main comma of the command line. The equation() suboption specifies which equation(s) should ...