'How to use AUC packet? to calculate AUC
Solution 1:[1]
A possible solution could be :
library(AUC)
auc(roc(testing$Class, prediction$R)) # I get as an answer the "AUC"
result.auc <- auc(prediction$M, testing$Class)
result.roc <- roc(testing$Class, prediction$M)
plot(result.roc, print.thres="best", print.thres.best.method="closest.topleft") # plot the curve
You can comment on the solution, please¡¡¡¡
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |



