计算mlogit后使用listcoef外部命令,stata12有问题,而stata10正常。请大家解读一下怎么回事?
就用连老师的教材的例子吧
findit listcoef 安装外部命令
findit nomocc2.dta
下载例题数据
然后:
qui mlogit occ white ed exper
listcoef white
在stata10上的结果与连老师教材相同
mlogit (N=337): Factor Change in the Odds of occ
Variable: white (sd= .28)
Odds comparing |
Group 1 - Group 2 | b z P>|z| e^b e^bStdX
------------------+---------------------------------------------
Menial -BlueCol | -1.23650 -1.707 0.088 0.2904 0.7105
Menial -Craft | -0.47234 -0.782 0.434 0.6235 0.8776
Menial -WhiteCol | -1.57139 -1.741 0.082 0.2078 0.6477
Menial -Prof | -1.77431 -2.350 0.019 0.1696 0.6123
BlueCol -Menial | 1.23650 1.707 0.088 3.4436 1.4075
BlueCol -Craft | 0.76416 1.208 0.227 2.1472 1.2352
BlueCol -WhiteCol | -0.33488 -0.359 0.720 0.7154 0.9116
BlueCol -Prof | -0.53780 -0.673 0.501 0.5840 0.8619
Craft -Menial | 0.47234 0.782 0.434 1.6037 1.1395
Craft -BlueCol | -0.76416 -1.208 0.227 0.4657 0.8096
Craft -WhiteCol | -1.09904 -1.343 0.179 0.3332 0.7380
Craft -Prof | -1.30196 -2.011 0.044 0.2720 0.6978
WhiteCol-Menial | 1.57139 1.741 0.082 4.8133 1.5440
WhiteCol-BlueCol | 0.33488 0.359 0.720 1.3978 1.0970
WhiteCol-Craft | 1.09904 1.343 0.179 3.0013 1.3550
WhiteCol-Prof | -0.20292 -0.233 0.815 0.8163 0.9455
Prof -Menial | 1.77431 2.350 0.019 5.8962 1.6331
Prof -BlueCol | 0.53780 0.673 0.501 1.7122 1.1603
Prof -Craft | 1.30196 2.011 0.044 3.6765 1.4332
Prof -WhiteCol | 0.20292 0.233 0.815 1.2250 1.0577
----------------------------------------------------------------
在stata12上的结果就不对了,只呈现一组变量的数据 ,如下:
mlogit (N=337): Factor Change in the Odds of occ
Variable: white (sd=.27642268)
Odds comparing |
Alternative 1 |
to Alternative 2 | b z P>|z| e^b e^bStdX
------------------+---------------------------------------------
Menial -Prof | -1.77431 -2.350 0.019 0.1696 0.6123
Prof -Menial | 1.77431 2.350 0.019 5.8962 1.6331
----------------------------------------------------------------
不知道是怎么回事??按说stata10可以运行的命令在stata12没有出问题的道理啊