View source: R/predictive_value.R
ppv_with_confidence | R Documentation |
Calculate the positive predictive value (PPV) with a confidence interval
based on a sensitivity output from agreement()
,
agreement_fraction()
, sensitivity()
, or
sensitivity_fraction()
and a specificity output from
agreement()
, agreement_fraction()
, specificity()
, or
specificity_fraction()
.
ppv_with_confidence(sensitivity, specificity, prevalence, interval)
sensitivity |
Output of a function such as |
specificity |
Output of a function such as |
prevalence |
The estimate of the prevalence of the condition in the population. |
interval |
The confidence interval used in the sensitivity and specificity calculations. |
The positive predictive value, with confidence.
ppa <- sensitivity(99, 0)
npa <- specificity(99, 0)
ppv_with_confidence(ppa, npa, 0.05, 0.95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.