# calculate first AUC (from v1 and v2)
v1 = c(191, 115, 129, 43, 523,-4, 34, 28, 33,-1, 54)
v2 = c(4,-2, 23, 13, 32, 16, 3, 29, 37,-4, 65)
results1 = t_neat(v1, v2, auc_added = TRUE)
# calculate second AUC (from v3 and v4)
v3 = c(14.1, 58.5, 25.5, 42.2, 13, 4.4, 55.5, 28.5, 25.6, 37.1)
v4 = c(36.2, 45.2, 41, 24.6, 30.5, 28.2, 40.9, 45.1, 31, 16.9)
results2 = t_neat(v3, v4, auc_added = TRUE)
# one-sided comparison of the two AUCs
roc_neat(results1$roc_obj, results2$roc_obj, greater = "1")
# create a list of randomlz generated AUCs
set.seed(1)
aucs_list = list()
for (i in 1:4) {
aucs_list[[i]] = t_neat(rnorm(50, (i-1)),
rnorm(50),
auc_added = TRUE,
hush = TRUE)$roc_obj
}
# depict AUCs (recognized as list)
roc_neat(aucs_list)
# \donttest{
# with custom cutoffs depicted
roc_neat(aucs_list,
cutoff_custom = list(0.2),
cutoff_auto = FALSE)
roc_neat(aucs_list,
cutoff_custom = list(.1, c(-.5, 0), NULL, c(.7, 1.6)),
cutoff_auto = FALSE)
roc_neat(aucs_list,
cutoff_custom = list(.6, NULL, NULL, 1.1))
# }
Run the code above in your browser using DataLab