Operating characteristics for array testing with master pooling
Calculate the expected number of tests and accuracy measures for each individual using array testing with master pooling.
MasterPool.Array.Measures(results, n, pmat, Se, Sp)
results |
an object containing results (expected number of tests and
accuracy measures) from |
n |
size of a row/column in the square array. |
pmat |
matrix of individual risk probabilities. |
Se |
the sensitivity of the diagnostic test. |
Sp |
the specificity of the diagnostic test. |
This function assumes that the array is square (i.e., the row and column size are equal) and utilizes the equations from Kim et al. (2007) for square array testing with master pooling. This function calculates the operating characteristics for array testing with master pooling. Operating characteristics calculated are expected number of tests, pooling sensitivity, pooling specificity, pooling positive predictive value, and pooling negative predictive value for each individual.
A list containing:
ET |
the expected number of tests for the array. |
PSe |
a matrix containing each individual's pooling sensitivity, corresponding to the input matrix of individual probabilities. |
PSp |
a matrix containing each individual's pooling specificity, corresponding to the input matrix of individual probabilities. |
PPV |
a matrix containing each individual's pooling positive predictive value, corresponding to the input matrix of individual probabilities. |
NPV |
a matrix containing each individual's pooling negative predictive value, corresponding to the input matrix of individual probabilities. |
This function returns the pooling positive and negative predictive values for all individuals in the array even though these measures are diagnostic specific; i.e., PPV (NPV) should only be considered for those individuals who have tested positive (negative).
Brianna D. Hitt
Kim, H., Hudgens, M., Dreyfuss, J., Westreich, D., Pilcher, C. (2007). “Comparison of group testing algorithms for case identification in the presence of test error.” Biometrics, 63(4), 1152–1163. ISSN 0006341X, doi: 10.1111/j.1541-0420.2007.00817.x.
Array.Measures
for calculating operating
characteristics under array testing without master pooling,
hierarchical.desc2
for three-stage hierarchical and
non-informative two-stage hierarchical testing, and
inf.dorf.measures
for informative two-stage hierarchical
testing.
Other Operating characteristic functions: Array.Measures
,
hierarchical.desc2
,
inf.dorf.measures
# Calculate the operating characteristics for # non-informative array testing with master # pooling, with a 6x6 array and an overall # disease risk of p = 0.10. # This example takes less than 1 second to run. # Estimated running time was calculated using a # computer with 16 GB of RAM and one core of an # Intel i7-6500U processor. p.mat <- matrix(data=0.10, ncol=6, nrow=6) results <- Array.Measures(p=p.mat, se=0.90, sp=0.90) MasterPool.Array.Measures(results=results, n=36, pmat=p.mat, Se=0.90, Sp=0.90)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.