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

View source: R/ntpp-methods.R

ntpp.simple_screenrR Documentation

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

Description

ntpp.simple_screenr 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

## S3 method for class 'simple_screenr'
ntpp(object, ..., prev = NULL)

Arguments

object

a simple_screenr-class object produced by simple_screenr.

...

optional arguments to ntpp methods.

prev

an optional positive proportion for the test outcome; if missing the prevalence is obtained from object.

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 prevalence and Sp is specificity. The anticipated positive proportion among those screened out is given by

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

Value

ntpp.simple_screenr returns data frame 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 positive proportion of the test condition among those who are screened out of testing.


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