Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

NNT.to.pv

NNT.to.pv


Description

Convert between (NNTpos, NNTneg) and (PPV, NPV).

Usage

NNT.to.pv(NNTpos, NNTneg, NNT, prev, calculate.se.sp = F)

Arguments

NNTpos

NNT for a patient with positive test result

NNTneg

NNT for a patient with negative test result

NNT

A matrix or vector of (NNTpos, NNTneg) values.

prev

Prevalence of the "BestToTreat" group before testing.

calculate.se.sp

(default=FALSE) If TRUE, also calculate the sensitivity and specificity using the contra-Bayes theorem.

Value

For matrix input, cbind(ppv=ppv, npv=npv). For vector input, c(ppv=ppv, npv=npv).


NNTbiomarker

Calculate Design Parameters for Biomarker Validation Studies

v0.29.11
GPL-3
Authors
Roger Day
Initial release
2015-08-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.