Displaying 1 result from an estimated 1 matches for "roc_test".
Did you mean:
ro_test
2013 Apr 14
2
script works in Rgui, but failes in Rscript (coords, package 'pROC')
...;, "T", "D")
score <- c(1.804984e-05, 1.908517e-02, 2.934481e-02, 8.188098e-02,
1.528048e-03, 4.617807e-01, 1.420925e-03, 2.360183e-01, 1.874567e-02,
5.127498e-01, 9.438651e-03, 2.162788e-01, 9.142649e-04, 1.173577e-01,
7.270350e-03, 4.699286e-01, 4.553215e-03, 3.942892e-01)
roc_test <- data.frame (hits, score)
roc1 <- roc(roc_test$hit, roc_test$score, plot = FALSE, smooth = FALSE,
sensitivities = TRUE )
roc.result <- coords(roc1, "best", ret=c("t", "se", "sp"), as.list = TRUE,
best.method=c("closest.topleft"))
print(r...