masterpool.assay.gen | R Documentation |
Generates master pool testing data.
masterpool.assay.gen(Y.true, Se, Sp, cj)
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 |
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).
Y.true <- rbinom(100,1,p=.05) assay.data <- masterpool.assay.gen(Y.true,Se=.96,Sp=.98,cj=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.