Description Usage Arguments Value Author(s) References Examples
Compute confidence intervals for sensitivity, specificity, positive and negative likelihood ratio of a diagnostic test. Optionally also positive and negative predictive value.
1 | confIntDiagnostic(tp, fp, tn, fn, conf.level = 0.95, cohort=FALSE, pr=NA)
|
tp |
Number of true positives. |
fp |
Number of false positives. |
tn |
Number of true negatives. |
fn |
Number of false negatives. |
conf.level |
Confidence level for confidence intervals. |
cohort |
Logical indicator whether data comes from a cohort study. |
pr |
Prevalence. |
A dataframe containing the estimated confidence intervals for sensitivity, specificity, positive and negative likelihood ratio. Optionally also positive and negative predictive value.
Leonhard Held
Pepe, M.S. (2003) The statistical evaluation of medical tests for classification and prediction. Oxford: Oxford University Press.
1 2 3 4 5 | ## Calculate confidence intervals for data from the Million Women Study
confIntDiagnostic(tp=629, fp=3885, tn=117744, fn=97)
confIntDiagnostic(tp=629, fp=3885, tn=117744, fn=97, cohort=TRUE)
confIntDiagnostic(tp=629, fp=3885, tn=117744, fn=97, pr=0.045)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.