Learn R Programming

DanielBiostatistics10th (version 0.2.6)

predval: Predictive Values

Description

Positive and negative predictive values.

Usage

ppv(prevalence, sensitivity, specificity)

npv(prevalence, sensitivity, specificity)

Value

Functions ppv and npv return double scalar or vector.

Arguments

prevalence

double scalar or vector

sensitivity, specificity

double scalars

Details

Function ppv calculates positive predictive values.

Function npv calculates negative predictive values.