全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
69168 26
2012-05-18
一直不明白stata中有些命令最后要加的nolog是什么意思?

比如做logit回归

logit y x1 x2 x3,nolog
二维码

扫码加我 拉你入群

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

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

全部回复
2012-5-19 07:15:36
1、为什么不看不看帮助的解释?
2、为什么不把两种情况执行一下'对比结果就知道了'。
学软件不尝试怎么能学好
二维码

扫码加我 拉你入群

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

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

2012-10-12 12:25:45
nolog suppresses display of the iteration log.

. xtreg fatal beertax spircons unrate perincK, mle nolog

Random-effects ML regression                    Number of obs      =       336
Group variable: state                           Number of groups   =        48

Random effects u_i ~ Gaussian                   Obs per group: min =         7
                                                               avg =       7.0
                                                               max =         7

                                                LR chi2(4)         =     67.39
Log likelihood  =  12.784035                    Prob > chi2        =    0.0000

------------------------------------------------------------------------------
       fatal |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     beertax |  -.1982558   .1505869    -1.32   0.188    -.4934007    .0968891
    spircons |   .5815301   .0871644     6.67   0.000     .4106909    .7523692
      unrate |  -.0381467   .0091776    -4.16   0.000    -.0561344   -.0201589
     perincK |   .0543694   .0223621     2.43   0.015     .0105405    .0981984
       _cons |   .6479714   .4682047     1.38   0.166    -.2696929    1.565636
-------------+----------------------------------------------------------------
    /sigma_u |   .8559797   .1147673                      .6581681    1.113243
    /sigma_e |    .159379   .0070215                      .1461946    .1737525
         rho |   .9664931   .0096949                      .9425673    .9815318
------------------------------------------------------------------------------
Likelihood-ratio test of sigma_u=0: chibar2(01)=  479.84 Prob>=chibar2 = 0.000

. estimates store MLE

. xtreg fatal beertax spircons unrate perincK, mle

Fitting constant-only model:
Iteration 0:   log likelihood = -41.203499
Iteration 1:   log likelihood = -23.030446
Iteration 2:   log likelihood = -21.043333
Iteration 3:   log likelihood = -20.912732
Iteration 4:   log likelihood = -20.911211

Fitting full model:
Iteration 0:   log likelihood = -74.726121
Iteration 1:   log likelihood = -42.772858
Iteration 2:   log likelihood =   3.512137
Iteration 3:   log likelihood =  12.059609
Iteration 4:   log likelihood =  12.767954
Iteration 5:   log likelihood =  12.784004
Iteration 6:   log likelihood =  12.784035

Random-effects ML regression                    Number of obs      =       336
Group variable: state                           Number of groups   =        48

Random effects u_i ~ Gaussian                   Obs per group: min =         7
                                                               avg =       7.0
                                                               max =         7

                                                LR chi2(4)         =     67.39
Log likelihood  =  12.784035                    Prob > chi2        =    0.0000

------------------------------------------------------------------------------
       fatal |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     beertax |  -.1982558   .1505869    -1.32   0.188    -.4934007    .0968891
    spircons |   .5815301   .0871644     6.67   0.000     .4106909    .7523692
      unrate |  -.0381467   .0091776    -4.16   0.000    -.0561344   -.0201589
     perincK |   .0543694   .0223621     2.43   0.015     .0105405    .0981984
       _cons |   .6479714   .4682047     1.38   0.166    -.2696929    1.565636
-------------+----------------------------------------------------------------
    /sigma_u |   .8559797   .1147673                      .6581681    1.113243
    /sigma_e |    .159379   .0070215                      .1461946    .1737525
         rho |   .9664931   .0096949                      .9425673    .9815318
------------------------------------------------------------------------------
Likelihood-ratio test of sigma_u=0: chibar2(01)=  479.84 Prob>=chibar2 = 0.000

不好意思,挖了这个坟。。。因为我也有同样的问题。。。然后就run了一下。。。这个命令省掉了中间iteration报告的那部分。。。挖坟完毕。。。
二维码

扫码加我 拉你入群

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

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

2012-10-13 08:32:48
barebear 发表于 2012-10-12 12:25
nolog suppresses display of the iteration log.

. xtreg fatal beertax spircons unrate perincK, mle ...
。。好。。。。。。
二维码

扫码加我 拉你入群

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

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

2013-3-11 23:04:50
应该是不显示迭代过程吧
二维码

扫码加我 拉你入群

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

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

2014-1-18 20:14:27
蓝色 发表于 2012-5-19 07:15
1、为什么不看不看帮助的解释?
2、为什么不把两种情况执行一下'对比结果就知道了'。
学软件不尝试怎么能 ...
一语惊醒梦中人
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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