The following code will get me a curve plot:
cutoff <- seq(1,7,0.25)
Sensitivity <- 1 - pnorm(cutoff, 5, 0.8)
Specificity <- pnorm(cutoff, 3, 1.2)
plot(1-Specificity,Sensitivity,main = "ROC curve",type = "o")

How do I get a gradient of a particular point on that curve?
Any packages/functions allow me to do that?  

Thank you

--
View this message in context: 
http://r.789695.n4.nabble.com/An-issue-regarding-to-gradient-tp3893401p3893401.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to