Skip to contents

Computed with the Mann-Whitney U statistic, so ties are handled correctly and no threshold is needed.

Usage

auc_score(obs, pred)

Arguments

obs

Numeric vector of observations (1 = presence, 0 = absence).

pred

Numeric vector of predicted suitability.

Value

A single number between 0 and 1.

Details

Limits. AUC measures ranking only, not calibration. It depends on the extent of the study area and the background (a wider area gives a higher AUC for the same model), and with background points it measures discrimination of presences from the background, not from absences (Lobo et al. 2008).

References

Hanley, J.A., McNeil, B.J. (1982) The meaning and use of the area under a receiver operating characteristic (ROC) curve. Radiology 143, 29-36. doi:10.1148/radiology.143.1.7063747

Fielding, A.H., Bell, J.F. (1997) A review of methods for the assessment of prediction errors in conservation presence/absence models. Environmental Conservation 24, 38-49. doi:10.1017/S0376892997000088

Lobo, J.M., Jimenez-Valverde, A., Real, R. (2008) AUC: a misleading measure of the performance of predictive distribution models. Global Ecology and Biogeography 17, 145-151. doi:10.1111/j.1466-8238.2007.00358.x

Examples

auc_score(c(1, 1, 0, 0), c(0.9, 0.6, 0.7, 0.1))
#> [1] 0.75