AUC.test | R Documentation |
Performs tests for one and two AUCs.
AUC.test(pred1, lab1, pred2, lab2, conf.level = 0.95, paired = FALSE)
pred1 |
numeric vector. |
lab1 |
grouping vector or factor for |
pred2 |
numeric vector. |
lab2 |
grouping vector or factor for |
conf.level |
confidence level of the interval. |
paired |
not yet implemented. |
If pred2
and lab2
are missing, the AUC for pred1
and lab1
is tested using the Wilcoxon signed rank test;
see wilcox.test
.
If pred1
and lab1
as well as pred2
and lab2
are specified, the Hanley and McNeil test (cf. Hanley and McNeil (1982))
is computed.
A list with AUC, SE and confidence interval as well as the corresponding test result.
Matthias Kohl Matthias.Kohl@stamats.de
J. A. Hanley and B. J. McNeil (1982). The meaning and use of the area under a receiver operating characteristic (ROC) curve. Radiology, 143, 29-36.
wilcox.test
, AUC
set.seed(13) x <- rnorm(100) ## assumed as log2-data g <- sample(1:2, 100, replace = TRUE) AUC.test(x, g) y <- rnorm(100) ## assumed as log2-data h <- sample(1:2, 100, replace = TRUE) AUC.test(x, g, y, h)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.