0

Suppose I have the data below

set.seed(4)
ctt <- runif(50,0,10)
status <- rbinom(50,1,0.7) # 0 control, 1 patient

and subjects with ctt >4.5 are normal (false positive) and ctt < 4.5 are abnormal (false negative). In this case, how could I obtain the ROC curve and auc, specifitiy and sensitivity?

Günal
  • 751
  • 1
  • 14
  • 29
  • are you asking if there's a specific function in R to calculate those, or what the equations would be to calculate? – economy Dec 15 '15 at 21:02
  • How I do it does not matter. I am interested in the results. So, both are fine with me – Günal Dec 15 '15 at 21:03
  • Well, one is kind of vaguely related to a programming question you might see on this site, and the other is blatantly off-topic. – economy Dec 15 '15 at 21:24
  • I thought you meant to use some equations in R to get what I want by the second option. However, the first option sounded shorter. Therefore, I said both are fine as long as they give the same result. – Günal Dec 15 '15 at 21:29
  • 3
    http://stackoverflow.com/questions/22413349/plot-roc-curve-and-calculate-auc-in-r-at-specific-cutoff-info?rq=1 – economy Dec 15 '15 at 21:30

0 Answers0