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