confIntIndependentDiagnostic: Compute confidence intervals for the comparison of two...

Description Usage Arguments Value Author(s) References Examples

Description

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.

Usage

1
confIntIndependentDiagnostic(tp, fp, tn, fn, conf.level = 0.95, adjust=FALSE)

Arguments

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.

Value

A dataframe containing the estimated confidence intervals for the measures of relative accuracy (first versus second test).

Author(s)

Leonhard Held

References

Pepe, M.S. (2003) The statistical evaluation of medical tests for classification and prediction. Oxford: Oxford University Press.

Examples

 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))

biostatUZH documentation built on May 2, 2019, 6:06 p.m.