用stata如何确定随机效应和固定效应哪个好,内生变量用2SLS如何做?

hausman test 2sls hausman命令如下:xtreg rate dixian xiangzhen gdp dus1 dus3 deprate sal bus stu hosp,fe est store fixed xtreg rate dixian xiangzhen gdp dus1 dus3 deprate sal bus stu hosp,re est store random hausman fixed random  

普通的2sls回归中的关于工具变量的命令如下:reg
y
x1
x2
(
z
x2),上述的回归模型假定x1是内生变量,其中
z
x2分别是x1
x2
相对应的工具变量.
版主提出的带有交叉项的回归模型中,不知可否
采用
reg
y
x1
x2*x1
(z
z*x2)
仅供参考
,我也是初学,
私下认为,x2应该为定性变量,即哑变量.
温馨提示:答案为网友推荐,仅供参考
相似回答
大家正在搜