Learn R Programming

evidence (version 0.8.10)

PPV: calculates the positive predictive value (PPV) of a diagnostic test.

Description

The positive predictive value (PPV) of a dianostic test is the probability that someone with a positive diagnostic test for a condition does have the condition. The PPV can easily be calculated from the prevalence, the sensitivity, and the specificity, but this function automates the procedure.

Usage

PPV(sens, spec, prev)

Arguments

sens

the sensitivity of the test

spec

the specificity of the test

prev

the prevalence of the disease

Value

the positive predictive value of the test

References

van Hulst, R. 2018. Evaluating Scientific Evidence. ms.

See Also

NPV

Examples

Run this code
# NOT RUN {
PPV(0.9, 0.8, 0.003)
# }

Run the code above in your browser using DataLab