R 语言绘制ROC
2019-01-11 本文已影响21人
Liam_ml
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
添加我的微信吧