Compute ROC sensitivity, specificity and threshold for a given cutoff.
rocthreshold(x, y, cut, input, prevalence = NULL, annotate = FALSE)
a vector with sensitivity, specificity, threshold, PPV and NPV at the given cutoff.
either a ROC object or the predictor to build the ROC curve
if x is not a ROC object, the binary outcome of the ROC curve
cutoff value
cutoff type, either sensitivity, specificity, threshold, PPV or NPV
Prevalence of the endpoint in the study population.
if TRUE, the full ROC curve is returned as an attribute
This function computes the sensitivity, specificity, threshold, PPV and NPV at a given cutoff value from a ROC curve.
NPV and PPV are computed only if a prevalence is provided as input.
If the ROC curve is not provided, it will be computed from the predictor and outcome.