76feibang 发表于 2012-12-31 00:33 
谢谢,是tpm命令。但我使用它自带的模型(webues womenwk),并直接使用它的命令,为什么说我错误,出现i ...
你查查,可能是其他问题。我这里运行正常。
Fitting logit regression for first part:
Iteration 0: log likelihood = -1266.2225
Iteration 1: log likelihood = -1040.6658
Iteration 2: log likelihood = -1027.9567
Iteration 3: log likelihood = -1027.9145
Iteration 4: log likelihood = -1027.9144
Fitting glm regression for second part:
Iteration 0: log likelihood = -4159.7605
Two-part model
Log pseudolikelihood = -5187.675 Number of obs = 2000
Part 1: logit
Number of obs = 2000
LR chi2(4) = 476.62
Prob > chi2 = 0.0000
Log likelihood = -1027.9144 Pseudo R2 = 0.1882
Part 2: glm
Number of obs = 1343
Deviance = 38542.35905 (1/df) Deviance = 28.80595
Pearson = 38542.35905 (1/df) Pearson = 28.80595
Variance function: V(u) = 1 [Gaussian]
Link function : g(u) = u [Identity]
AIC = 6.202175
Log likelihood = -4159.760537 BIC = 28905.2
wage Coef. Std. Err. z P>z [95% Conf. Interval]
logit
education .0982513 .0186522 5.27 0.000 .0616936 .134809
age .0579303 .007221 8.02 0.000 .0437773 .0720833
married .7417775 .1264705 5.87 0.000 .4938998 .9896552
children .7644882 .0515289 14.84 0.000 .6634935 .865483
_cons -4.159247 .3320401 -12.53 0.000 -4.810034 -3.508461
glm
education .8750694 .050243 17.42 0.000 .7765949 .9735438
age .1514818 .0192717 7.86 0.000 .1137099 .1892537
married -.5395024 .3574519 -1.51 0.131 -1.240095 .1610904
children -.6862982 .1032256 -6.65 0.000 -.8886166 -.4839798
_cons 7.934369 .9264515 8.56 0.000 6.118558 9.750181