更改 SAS 中的逻辑回归阈值
changing the logistic regression threshold in SAS
如何在因变量为二元的逻辑回归模型中更改预测概率的阈值?该值由软件默认设置为0.5。
一个选项:
PPROB=value
PPROB=(list)
specifies one critical probability value (or cutpoint) or a list of critical probability values for classifying observations with the CTABLE option. Each value must be between 0 and 1. A response that has a cross validated predicted probability greater than or equal to the current PPROB= value is classified as an event response. The PPROB= option is ignored if the CTABLE option is not specified.
根据您要查找的内容,可能还有其他方法。我还会检查以确保它已应用到我期望的位置,即输出表也是 CTABLE。
proc logistic data=sashelp.heart ;
class sex smoking_status;
model status = sex smoking_status weight/ctable pprob=0.7;
output out=want;
run;quit;
如何在因变量为二元的逻辑回归模型中更改预测概率的阈值?该值由软件默认设置为0.5。
一个选项:
PPROB=value PPROB=(list) specifies one critical probability value (or cutpoint) or a list of critical probability values for classifying observations with the CTABLE option. Each value must be between 0 and 1. A response that has a cross validated predicted probability greater than or equal to the current PPROB= value is classified as an event response. The PPROB= option is ignored if the CTABLE option is not specified.
根据您要查找的内容,可能还有其他方法。我还会检查以确保它已应用到我期望的位置,即输出表也是 CTABLE。
proc logistic data=sashelp.heart ;
class sex smoking_status;
model status = sex smoking_status weight/ctable pprob=0.7;
output out=want;
run;quit;