[R] An issue regarding to gradient
luke1022
lukeintotherain at msn.com
Tue Oct 11 12:02:02 CEST 2011
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.
More information about the R-help
mailing list