View source: R/PVBcorrect_functions.R
acc_dg2 | R Documentation |
Perform PVB correction by Begg and Greenes' method 2 as described in deGroot et al (2011), in which it also includes PPV and NPV calculation. This is limited to only one covariate.
acc_dg2(data, test, disease, covariate, description = TRUE)
data |
A data frame, with at least "Test" and "Disease" variables. |
test |
The "Test" variable name, i.e. the test result. The variable must be in binary; positive = 1, negative = 0 format. |
disease |
The "Disease" variable name, i.e. the true disease status. The variable must be in binary; positive = 1, negative = 0 format. |
covariate |
The name(s) of covariate(s), i.e. other variables associated with either test or disease status. Specify as name vector, e.g. c("X1", "X2") for two or more variables. The variables must be in formats acceptable to GLM. |
description |
Print the name of this analysis. The default is |
A data frame object containing the accuracy results.
de Groot, J. A. H., Janssen, K. J. M., Zwinderman, A. H., Bossuyt, P. M. M., Reitsma, J. B., & Moons, K. G. M. (2011). Correcting for partial verification bias: a comparison of methods. Annals of Epidemiology, 21(2), 139–148.
acc_dg2(data = cad_pvb, test = "T", disease = "D", covariate = "X3")
# equivalent to acc_ebg(), saturated_model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.