Learn R Programming

alternativeROC (version 1.0.1)

cippv: Diagnostic performance: Confidence interval for positive predictive value

Description

This function computes a confidence interval for the positive predictive value from a ROC curve, given the prevalence of the positive outcome.

Usage

cippv(
  roc,
  ppv,
  prevalence,
  boot.n = 2000,
  quantiles = c(0.5, 0.025, 0.975),
  ...
)

Value

A numeric vector of length 3 containing the median, lower bound, and upper bound of the confidence interval.

Arguments

roc

Object of class pROC.

ppv

Positive 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 positive predictive value from a ROC curve, given the prevalence of the positive outcome. The confidence interval is computed using bootstrap resampling.