EYexact | R Documentation |
Computes conditional expectations of individual disease statuses for individual, master pool, or Dorfman testing
EYexact(Z, Y, X, b, Se, Sp)
Z |
Group testing output from one of the functions |
Y |
Group testing output from one of the functions |
X |
Design matrix with first column a column of 1s. |
b |
Parameter values at which to compute the conditional expectations. |
Se |
A vector of testing sensitivities of length |
Sp |
A vector of testing specificities of length |
The vector of conditional expectations.
This function computes the conditional expectations of each individual disease status, conditional on the observed assay data and the diseasestatuses of all other individuals.
grouplassogt2pop_data <- get_grouplassogt2pop_data( n1 = 400, n2 = 600) EY <- EYexact(Z = grouplassogt2pop_data$Z1, Y = grouplassogt2pop_data$Y1, X = grouplassogt2pop_data$X1, b = rep(1,ncol(grouplassogt2pop_data$X1)), Se = grouplassogt2pop_data$Se1, Sp = grouplassogt2pop_data$Sp1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.