I would like to get the optimal cut off point of the ROC in logistic regression as a number and not as two crossing curves. Using the code below I can get the plot that will show the optimal point but in some cases I just need the point as a number that I can use for other calculations. Here are the code lines:
library(Epi)
ROC( form = IsVIP ~ var1+var2+var3+var4+var5, plot="sp", data=vip_data )
Thanks
ROC
to create an equation/formula representingcurve1 - curve2
. Then useuniroot
to find the zero point. I'm not familiar with this package, so there may be easier ways within theEpi
package. – Wartburg