全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
2838 4
2019-09-30
请问各位好心人,有人知道为什么heckman模型逆mills比率为0么???????没有不被样本选择的么???
因变量为二分变量,自变量为类别变量(5组)
Selected    =     24,082
Nonselected =          0
/mills       |
      lambda |          0  (constrained)

. heckman Q201 b1.small q101b1  age  q101d1  q101e1  q101g1 dist ln age1, sel(small=  age  q101d1 q101e1    age1) two

Heckman selection model -- two-step estimates   Number of obs     =     24,082
(regression model with sample selection)              Selected    =     24,082
                                                      Nonselected =          0

                                                Wald chi2(12)     =    3777.33
                                                Prob > chi2       =     0.0000

------------------------------------------------------------------------------
             |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
Q201         |
       small |
      B2  |   .0899883   .0087693    10.26   0.000     .0728008    .1071759
     B3  |   .1091937   .0085061    12.84   0.000     .0925221    .1258652
    B4  |   .1273023   .0105124    12.11   0.000     .1066983    .1479063
   B5  |   .1414176   .0126478    11.18   0.000     .1166284    .1662069
             |
      q101b1 |   .2419526    .004823    50.17   0.000     .2324996    .2514055
         age |   .0014995   .0005336     2.81   0.005     .0004536    .0025453
      q101d1 |   .0019979   .0078451     0.25   0.799    -.0133783    .0173741
      q101e1 |    .029035   .0090851     3.20   0.001     .0112286    .0468414
      q101g1 |   .0109193   .0156066     0.70   0.484    -.0196692    .0415077
        dist |   .0419472   .0047852     8.77   0.000     .0325684     .051326
          ln |   .1086824   .0047098    23.08   0.000     .0994514    .1179133
        age1 |   .0243927   .0047586     5.13   0.000      .015066    .0337194
       _cons |  -.4261147   .0443677    -9.60   0.000    -.5130739   -.3391556
-------------+----------------------------------------------------------------
small        |
         age |  -8.90e-14          .        .       .            .           .
      q101d1 |   4.42e-13          .        .       .            .           .
      q101e1 |  -3.18e-13          .        .       .            .           .
        age1 |   2.16e-15          .        .       .            .           .
       _cons |   6.072463          .        .       .            .           .
-------------+----------------------------------------------------------------
/mills       |
      lambda |          0  (constrained)
-------------+----------------------------------------------------------------
         rho |    0.00000
       sigma |  .36383203
------------------------------------------------------------------------------


二维码

扫码加我 拉你入群

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

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

全部回复
2019-9-30 22:48:52
那你先看看伍德里奇的书上的例子
和你的对比一下
二维码

扫码加我 拉你入群

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

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

2019-10-1 14:08:35
老师,那本书讲样本选择的还是没太懂,是我的语法错了么,还是什么,您能进一步指点一下么
二维码

扫码加我 拉你入群

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

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

2019-10-1 14:19:33
当我用这个语法时
heckman Q201 b1.small q101b1  age  q101d1  q101e1  q101g1 dist ln age1, sel(small q101b1  age  q101d1  q101e1  q101g1 dist ln age1) twostep
会出现报错结果:
Dependent variable never censored because of selection:
model would simplify to OLS regression
二维码

扫码加我 拉你入群

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

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

2022-8-7 10:35:40
请问楼主解决这个问题了吗?是怎么回事呀?我现在也出现了这个问题
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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