ppv: Positive Predictive Value

View source: R/predictive_value.R

ppvR Documentation

Positive Predictive Value

Description

Calculate Positive Predictive Value (PPV) in a population based on sensitivity, specificity, and prevalence estimates.

Usage

ppv(sensitivity, specificity, prevalence)

Arguments

sensitivity

The estimate of Sensitivity (PPA)

specificity

The estimate of Specificity (NPA)

prevalence

The estimate of the prevalence of the condition in the population.

Value

The positive predictive value

Examples

ppv(0.95, 0.95, 0.05)

bjoleary/dxr documentation built on Dec. 5, 2023, 8:33 p.m.