作业帮 > 综合 > 作业

如何用stata进行logit预测的命令怎么写

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/16 05:28:14
如何用stata进行logit预测的命令怎么写
predict [type] newvar [if] [in] [,statistic nooffset rules asif]
statistic description
------------------------------------------------------------------------
Main
pr probability of a positive outcome; the default
xb xb,fitted values
stdp standard error of the prediction
* dbeta Pregibon Delta-Beta influence statistic
* deviance deviance residual
* dx2 Hosmer and Lemeshow Delta chi-squared influence
statistic
* ddeviance Hosmer and Lemeshow Delta-D influence statistic
* hat Pregibon leverage
* number sequential number of the covariate pattern
* residuals Pearson residuals; adjusted for number sharing covariate
pattern
* rstandard standardized Pearson residuals; adjusted for number
sharing covariate pattern
score first derivative of the log likelihood with respect to
xb
------------------------------------------------------------------------
Unstarred statistics are available both in and out of sample; type
predict ...if e(sample) ...if wanted only for the estimation sample.
Starred statistics are calculated only for the estimation sample,even
when if e(sample) is not specified.
pr,xb,stdp,and score are the only options allowed with svy estimation
results.