dorfman.assay.gen | R Documentation |
Generates Dorfman testing data.
dorfman.assay.gen(Y.true, Se, Sp, cj)
Y.true |
The true disease statuses of the individuals. |
Se |
A vector of testing sensitivities, where the first element is the testing sensitivity for the master pools and the second entry is the test sensitivity for individual testing. |
Sp |
A vector of testing specificities, where the first element is the testing specificity for the master pools and the second entry is the test specificity for individual testing. |
cj |
The size of the master pools (Note: The number of individuals |
A list containing objects Z
and Y
.
This function simulates Dorfman decoding 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 <- dorfman.assay.gen(Y.true,Se=c(.95,.92),Sp=c(.97,.98),cj=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.