da_compare | R Documentation |
compare diagnostic accuracy measures for 2 binary tests evaluated in a paired setting (each test evaluated each patients) having a reference tandard
da_compare(
test1 = NULL,
test2 = NULL,
refstd = NULL,
test1_lab = "test1",
test2_lab = "test2",
alpha = 0.05,
boot_R = 10000,
da_params = list(),
boot_parallel = "multicore",
boot_ncpus = 8L
)
test1 |
oldest test available, logical value with FALSE = non diseased and TRUE diseased or factor with two levels |
test2 |
new test, same coding as test1 |
refstd |
reference standard diagnosis same coding as test1 |
test1_lab |
test 1 label/name |
test2_lab |
test 2 label/name |
alpha |
Type I error |
boot_R |
bootstrap repetition |
boot_parallel |
use parallel |
boot_ncpus |
number of cpus dedicated to bootstrapping |
db <- dadb(tp = 70, fp = 20, fn = 30, tn = 80)
db2 <- dadb(tp = 50, fp = 45, fn = 50, tn = 55)
db$test2 <- db2$test
## test2 is worst than test
acc <- da_compare(test1 = db$test, test2 = db$test2, refstd = db$refstd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.