da: Calculate diagnostic accuracy measures for binary measures...

Description Usage Arguments Value Examples

View source: R/da.R

Description

Calculate diagnostic accuracy measures for binary measures (test, reference standard)

Usage

1
2
3
da(test = NULL, refstd = NULL, alpha = 0.05, round.dig = 4,
  positive.first = TRUE, ppv.npv.prev = NULL,
  ppv.npv.force.unadj.est = FALSE)

Arguments

test

Test (dichotomic)

refstd

Reference standard (dichotomic)

alpha

Type I error (for two sided confidence interval)

round.dig

Rounding digits

positive.first

Display positive test and reference standard in first row column

ppv.npv.prev

Prevalence adopted for ppv and npv confidence interval (if NULL estimated from sample)

ppv.npv.force.unadj.est

Force unadjusted ppv npv estimates (and confidence interval)

Value

Diagnostic accuracy table and statistics with confidence interval.

Examples

1
2
3
4
5
6
7
## Example CASS pag 22 Pepe
db <- dadb(tn=327 , fn=208 ,fp =115 , tp=815)
with(db, da(test=test, refstd=refstd))

## Example Alzheimer mercaldo
db <- dadb(tn=288 , fn=178 ,fp =87 , tp=240)
with(db, da(test=test, refstd=refstd, ppv.npv.prev=.03))

lbraglia/yapomif documentation built on May 20, 2019, 11:26 p.m.