Description Usage Arguments Value Author(s) References Examples
Compute confidence intervals for relative fractions and relative likelihood ratios. Specifically, confidence intervals for the relative true positive, true negative, false positive and false negative fraction as well as the relative positive and negative likelihood ratio are provided.
1 | confIntIndependentDiagnostic(tp, fp, tn, fn, conf.level = 0.95, adjust=FALSE)
|
tp |
Number of true positives of the two tests. |
fp |
Number of false positives. |
tn |
Number of true negatives. |
fn |
Number of false negatives. |
conf.level |
Confidence level for confidence intervals. |
adjust |
Adjusted CIs? by default FALSE. |
A dataframe containing the estimated confidence intervals for the measures of relative accuracy (first versus second test).
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 6 7 8 9 10 11 | ## Calculate confidence intervals for data from a (hypothetical)
## randomized unpaired study of chorionic villus sampling (CVS)
## versus early amniocentesis (EA) for fetal abnormality from
## Pepe (2003)
tp <- c(116, 111)
fp <- c(34, 111)
tn <- c(4844, 4765)
fn <- c(6, 13)
print(confIntIndependentDiagnostic(tp=tp, fp=fp, tn=tn, fn=fn))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.