请教,最近在用系统GMM做研究,因变量是lnhp,自变量是L.er,控制变量是pgdp stru,i.year是时间效应,想请教gmm()和iv()应该分别放哪些变量,另外得到的结果sargen检验的P值和AR(2)的p值必须大于0.1才通过检验,否则该模型无效吗?请帮看一下我写的命令是否正确,非常感谢!
xtabond2 lnhp L.lnhp L.er pgdp stru i.year,gmm(lnhp L.er, lag(2 3)) iv(i.year pgdp stru) small noconst