R 語言繪製ROC

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)
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章