# Tag Info

The roc function in the pROC package allows you to extract the sensitivity and specificity values. I will give an example below. Keep in mind that the $y$-axis is sensitivity, but the $x$-axis is $1 - specificity$. library(pROC) set.seed(2021) N <- 1000 x1 <- rnorm(N) x2 <- rnorm(N) x3 <- rnorm(N) z <- x1 + x2 + x3 pr <- 1/(1 + exp(-z)) y &...