How to calculate average sensitivity and specificity at specified cutoff
in ROCR package?
I use ROCR package to draw the ROC curve. The code is as follows:
pred <- prediction(my.pred, my.label) perf <- performance(my.pred, 'tpr',
'fpr') plot(perf,avg="threshold")
My pred and perf object is not a vector but a list, so I can get an
average ROC curve. Can anyone tell me how to calculate average sensitivity
and specificity at a specified cutoff in ROCR package?
No comments:
Post a Comment