auc {spatialRF} | R Documentation |
Area under the ROC curve
Description
Computes the area under the ROC curve in models with binary responses.
Usage
auc(o, p)
Arguments
o |
Numeric vector with observations, must have the same length as |
p |
Numeric vector with predictions, must have the same length as |
Value
Numeric, AUC value.
Examples
if(interactive()){
out <- auc(
o = c(0, 0, 1, 1),
p = c(0.1, 0.6, 0.4, 0.8)
)
}
[Package spatialRF version 1.1.4 Index]