Learn R Programming

MKmisc (version 1.9)

pairwise.auc: Compute pairwise AUCs

Description

The function computes pairwise AUCs.

Usage

pairwise.auc(x, g)

Value

Vector with pairwise AUCs.

Arguments

x

numeric vector.

g

grouping vector or factor

Author

Matthias Kohl Matthias.Kohl@stamats.de

Details

The function computes pairwise areas under the receiver operating characteristic curves (AUC under ROC curves) using function AUC.

The implementation is in certain aspects analogously to pairwise.t.test.

See Also

Examples

Run this code
set.seed(13)
x <- rnorm(100)
g <- factor(sample(1:4, 100, replace = TRUE))
levels(g) <- c("a", "b", "c", "d")
pairwise.auc(x, g)

Run the code above in your browser using DataLab