library("pROC")
data(aSAH)
# Build a ROC object and compute the AUC
roc(aSAH$outcome, aSAH$s100b)
绘图
data(aSAH)
# Build a ROC object and compute the AUC, draw ROC, print AUC and the best THRESHOLDS
roc(aSAH$outcome, aSAH$s100b, plot=TRUE, print.thres=TRUE, print.auc=TRUE)
米霖微信.PNG
添加我的微信吧
网友评论