proc logistic 预测的详细信息

Detailed of predictions on proc logistic

我正在使用贫困或非贫困家庭的分类作为因变量的家庭数据库中实施对数模型(如果贫困则为 1,否则为 0):

proc logistic data=regression;
    model poor(event="1") = variable1 variable2 variable3 variable4;
run;

使用 SAS 中的 proc logistic,我获得了 table "Association of predicted probabilities and observed responses" 让我知道协调百分比。但是,我需要详细的信息,即有多少家庭被划分为足够的贫困,这样:

非常感谢你对这个问题的帮助。

将 CTABLE 选项添加到您的 MODEL 语句中。

model poor(event="1") = variable1 variable2 variable3 variable4 / ctable;

CTABLE classifies the input binary response observations according to whether the predicted event probabilities are above or below some cutpoint value z in the range . An observation is predicted as an event if the predicted event probability exceeds or equals z. You can supply a list of cutpoints other than the default list by specifying the PPROB= option. Also, you can compute positive and negative predictive values as posterior probabilities by using Bayes’ theorem. You can use the PEVENT= option to specify prior probabilities for computing these statistics. The CTABLE option is ignored if the data have more than two response levels. This option is not available with the STRATA statement.

For more information, see the section Classification Table.