masterpool.assay.gen: Generates master pool testing data.

View source: R/misc.R

masterpool.assay.genR Documentation

Generates master pool testing data.

Description

Generates master pool testing data.

Usage

masterpool.assay.gen(Y.true, Se, Sp, cj)

Arguments

Y.true

The true disease statuses of the individuals.

Se

The master pool testing sensitivity.

Sp

The master pool testing specificity.

cj

The size of the master pools (Note: The number of individuals length(Y.true) should be evenly divisible by cj, this is only for decoding purposes; i.e., the regression methods do not require this condition).

Value

a list containing objects Z and Y.

This function simulates Initial pool testing and stores the testing responses in accordance to the data structure required to fit the group testing regression model presented in Gregory et al. (2018+). For the specifics of this structure see McMahan et al. (2017).

Examples

Y.true <- rbinom(100,1,p=.05)
assay.data <- masterpool.assay.gen(Y.true,Se=.96,Sp=.98,cj=4)

gregorkb/semipadd2pop documentation built on Oct. 2, 2022, 1:37 p.m.