Learn R Programming

Daim (version 1.1.0)

auc: The area under the ROC curve (AUC)

Description

This function computes the area under an ROC curve.

Usage

"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

Run this code

  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)

Run the code above in your browser using DataLab