| array.assay.gen | R Documentation |
Generates array testing data.
array.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 row/column 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 row/column pools and the second entry is the test specificity for individual testing. |
cj |
Row and column pool sizes to be used (Note: The number of individuals
should be evenly divisible by |
A list containing objects Z and Y.
This function simulates array 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).
# generate individual covariate values and disease statuses N <- 100 data <- model1(N) X <- data$X Y.true <- data$Yi Se <- c(.95,.92) # set row/col and individual assay sensitivity Sp <- c(.97,.98) # set row/col and individual assay specificity cj <- 4 # set dimension of arrays # subject individuals to array testing assay.data <- array.assay.gen(Y.true,Se,Sp,cj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.