epi_predval | R Documentation |
Generate ppv and npv from test evaluation and prevalence range
epi_predval( X = NULL, Y = NULL, se = NULL, sp = NULL, prevalences = seq(0, 1, 0.01) )
X |
An epiR::epi.tests object or test sensitivity |
Y |
Test specificity if not explicitly assigned to sp |
se |
optionally test sensitivity |
sp |
optionally test specificituy |
prevalences |
vector of prevalences to calculate npv and ppv at |
Returns an epi_predval object
head(mtcars) res <- epi_tests(mtcars, mpg < 25, cyl > 4, conf.level = 0.95) epi_predval(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.