auc.numeric: The area under the ROC curve (AUC)

Description Usage Arguments Value See Also Examples

View source: R/auc.R

Description

This function computes the area under an ROC curve.

Usage

1
2
## S3 method for class 'numeric'
auc(x, y, ...)

Arguments

x

vector consisting of sensitivities of a classification procedure/diagnostic test for several cutpoints.

y

vector consisting of specificity of a classification procedure/diagnostic test for several cutpoints.

...

additional parameters.

Value

a scalar number, the area under the ROC curve.

See Also

auc.Daim, roc.area.Daim, Daim

Examples

1
2
3
4
5
6
7
8
9
  data(Daim.data1)
  perform <- performDaim(Daim.data1$prob.oob, Daim.data1$labels,
                         Daim.data1$prob.app)

  ####
  #### compute the 0.632+ estimation of the AUC.
  ####

  auc(perform$roc$sens632p, perform$roc$spec632p)

Daim documentation built on May 29, 2017, 9:08 a.m.