我生成了一些分数来帮助预测某些内容是“是”(1) 还是“否”(0),假设数据包括:
scores = c(10:20)
response = c(0,0,1,0,1,0,1,1,0,1,1)
mydata = data.frame(scores, response)
我可以进行 ROC 分析,得出 AUC 为 0.77:
roc(response = mydata$response, predictor = mydata$scores)
现在,我如何准确地看到选择不同的截止值时会发生什么?我想在 x 轴上设置截止值(比方说 13,14,15,16,17),在 y 轴上设置 PPV。有什么好的方法可以做到这一点?我需要什么功能/包?