0

I am using the cutpointr package in R to create ROC curves and find optimal cutpoints. The objective is to develop a diagnostic test. The diagnostic test value is quantitative and I want to find the optimal cutpoint to classify the tested individual as healthy or sick.

I want to extract a table with the Se and Sp at different cutpoints. How can I do this? I do not find any information in the cutpointr package documentation.

cp <- cutpointr(file, assay_value, reference_value, 
                method = maximize_metric, metric = youden, na.rm = TRUE)
cp

plot(cp) # ROC curve
Falco
  • 183
  • 2
  • 16
  • It's easier to help you if you include a simple [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with sample input and desired output that can be used to test and verify possible solutions. – MrFlick Mar 13 '23 at 14:35
  • Do you want an answer with the cutpointr package or do other answers work too? – Calimo Mar 22 '23 at 15:47
  • I wanted an answer with the cupointr package. As I did not find any solution, I finally used the pROC package. – Falco Mar 23 '23 at 11:52

0 Answers0