全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 统计软件培训班VIP答疑区
5843 1
2013-04-10
连老师你好,

我用ivreg2做一个回归,命令如下:

xi:ivreg2  dhb     hanzu   stuage female    asset_10000  left_behind  meduyear feduyear  meal county_dum1  county_dum2 (i.attend12_2= treatment) ,cluster (schoolcode)

这个模型里的内生变量是attend12_2, 是一个虚拟变量,其值为0, 1, 2,
工具变量是treatment(0, 1), 只有一个工具变量,

但是运行该命令的结果是:
. xi:ivreg2  dhb     hanzu   stuage female    asset_10000  left_behind  meduyear feduyear  meal county_dum1  county_du
> m2 (i.attend12_2= treatment) ,cluster (schoolcode)
i.attend12_2      _Iattend12__0-2     (naturally coded; _Iattend12__0 omitted)
equation not identified; must have at least as many instruments not in
the regression as there are instrumented variables

r(481);

这种情况应该如何处理,请连老师指教。
元芳感激不尽。


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2013-4-10 21:24:40
你不能直接用类别变量(attend12_2)进行回归,要把该变量拆成两个虚拟变量才行。
如果虚拟变量是内生的,要采用 treatment effect 模型进行分析,需要使用 treatreg 命令。
最为合适的应该是外部命令 mtreatreg,详情如下:
mtreatreg  module to fits models with multinomial treatments
            and continuous, count and binary outcomes

输入如下命令可以查看并下载相关文件:
findit mtreatreg            
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群