cinpv {alternativeROC} | R Documentation |
Diagnostic performance: Confidence interval for negative predictive value
Description
This function computes a confidence interval for the negative predictive value from a ROC curve, given the prevalence of the negative outcome.
Usage
cinpv(roc, npv, prevalence, boot.n, quantiles = c(0.5, 0.025, 0.975), ...)
Arguments
roc |
Object of class pROC. |
npv |
Negative predictive value. |
prevalence |
Prevalence of the endpoint in the study population. |
boot.n |
Number of bootstrap replicates. Default: 2000. |
quantiles |
Quantiles. Default: c(0.5,.025,.975). |
... |
Not used. |
Details
This function computes a confidence interval for the negative predictive value from a ROC curve, given the prevalence of the negative outcome. The confidence interval is computed using bootstrap resampling.
Value
A numeric vector of length 3 containing the median, lower bound, and upper bound of the confidence interval.
[Package alternativeROC version 1.0.0 Index]