全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
10274 2
2013-09-11
第一次用heckman two step to correct selection bias. 我用的stata12。可是总是出错。帮我看看哪里不对?
error message:     "Dependent variable never censored because of selection: model would simplify to OLS regression"


我的情况是有一半的cases missing dependent variable information(outcome),所以是truncated的情况。 这种情况那个dependent variable应该怎么code? 我的是0=no,1=yes, 9=truncated missing outcome。 这样code对吗? 要不要把9这个category直接改成
。(missing)?


另外我的程序如下,到底哪里错了?
heckman outcome iv1 iv2 iv3, select(var1 var2 var3) twostep

二维码

扫码加我 拉你入群

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

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

全部回复
2014-8-18 12:39:34
为零的值要换成miss,即.。
二维码

扫码加我 拉你入群

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

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

2019-10-1 14:27:42
老师您好,请问我下面这个回归也出现了上述问题(因变量为二分变量,在此之前可以跑出LOGIT模型,但是HECKMAN就报错了),请问该怎么办呢
heckman Q201 b1.small q101b1  age  q101d1  q101e1  q101g1 dist ln age1, sel(small q101b 1  age  q101d1  q101e1  q101g1 dist ln age1) twostep

Dependent variable never censored because of selection:
model would simplify to OLS regression
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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