auc_vector_fast: Compute AUC values ala presence-only data using a fast...

View source: R/auc.R

auc_vector_fastR Documentation

Compute AUC values ala presence-only data using a fast algorithm.

Description

This function gains speed using Rfast::Sort() and base::findInterval()

Usage

auc_vector_fast(f, v, thr = seq(from = 1, to = 0, by = -0.001))

Arguments

f

a vector of forecasted ranked suitability values, NaNs and NAs will be removed

v

a vector of forecasted values where there are presences, NaNs and NAs will be removed

thr

a vector of threshold values

Value

a list of

  • fpa, a vector of fpa (fractional predicted area)

  • sensitive, a vector of sensitivity (1-omission rate)

  • area, AUC


BigelowLab/dismotools documentation built on Jan. 4, 2023, 11:24 a.m.