ntpp: An S3 Method to Compute the Ratio of Total Tests to Positive...

View source: R/ntpp-methods.R

ntppR Documentation

An S3 Method to Compute the Ratio of Total Tests to Positive Results

Description

ntpp computes the ratio of the total number of tests performed per positive test result and the anticipated proportion of the untested (those screened out of testing) who would actually test positive.

Usage

ntpp(object, ...)

Arguments

object

an object from which to compute the number of tests per test positive test results.

...

additional arguments.

Details

The anticipated number of tests required to detect a single positive nntp is given by

nntp = (SeP + (1 - Sp)(1 - P)) / SeP

where Se is sensitivity, P is test positivity and Sp is specificity. The anticipated true positivity among those screened out is given by

Puntested = ((1 - Se)P) / ((1 - Se)P + Sp (1 - P))

Value

ntpp returns a dataframe containing the following columns:

sensitivity

The sensitivity (proportion) of the screener.

specificity

The specificity (proportion) of the screener.

ntpp

the number of tests required to discover a single positive test result.

prev_untested

The antipated proportion who would test positive among those who are screened out of testing.

See Also

ntpp.default, ntpp.data.frame, ntpp.easy_tool, ntpp.lasso_screenr, ntpp.logreg_screenr, ntpp.simple_screenr

Examples

attach(uniobj2)
ntpp(uniobj2)


sgutreuter/screenr documentation built on Nov. 20, 2022, 2:41 a.m.