impa: Mini Pooling Test Number

Description Usage Arguments Value Examples

View source: R/impa.R

Description

This function allows you to compute the average number of assays needed per pool within each provided pooled cluster.

Usage

1
impa(v, s, K = 5, vf_cut = 1000, lod = 0)

Arguments

v

Vector of viral load.

s

Vector of risk score with the same length of viral load.

K

Pool size, default is 5.

vf_cut

Cutoff for individual viral failure, default is 1000.

lod

Vector of true VL of those undetectable, default is 0.

Value

A vector with length equals the number of pools. Each element indicates the estimated number of tests for the corresponding pool.

Examples

1
2
3
4
d = Simdata
V = d$VL # Viral Load
S = d$S # Risk Score
impa(V, S, K = 5, vf_cut = 1000, lod = 0)

yizhenxu/mMPA documentation built on May 4, 2019, 5:29 p.m.