aucRatio: Ratio of Area Under the Receiver Operating Characteristic...

Description Usage Arguments Details Value References See Also Examples

View source: R/aucRatio.R

Description

aucRatio Calculates the ratio of the area under the ROC curve (AUC) as suggested by Peterson et al. (2008). AUC represents the accuracy of the subset of the best models produced by GARP. AUC evaluates the predictive performance of the best models by relating the model sensitivity (true positive rate) to 1-specificity (true negative rate), and can be described as the probability that any given cell is correctly predicted as present or absent. An AUC of 0.5 is that predicted at random, while an AUC of 1 represents a perfect prediction

Usage

1
aucRatio(n, x, points, E)

Arguments

n

a numeric value specifying the number of models in the best subset outputted by GARP

x

a raster object of the summated raster of the best models output by GARP

points

a spatial object of presence data to use for testing locations

E

the amount of error admissible along the true-positive axis (less than 1.0)

Details

The raster object (x) should be a raster representing the number of models that agree on a predicted presence location per pixel and that outtput by sumRasters. The shapefile points should presence locations that were not used by GARP for model training and those output by splitData.

Value

Plots the modified Receiver Operating Characteristic (ROC) curve and returns a list containing:

References

Peterson, A.T., M. Papes, J. Soberon (2007) Rethinking receiver operating characteristic analysis applications in ecological niche modeling. Ecological Modelling. 213(1):63-72.

See Also

aucGARP, zAUC, seAUC, wGARP, plotROC

Examples

1
2
3
4
5
6
  set.seed(0)
  library(raster)
  r   <- raster(ncols = 100, nrows = 100)
  r[] <- rbinom(5, 10, 0.3)
  hs  <- data.frame("Latitude" = c(-89, 72, 63, 42, 54), "Longitude" = c(-12, 13, 24, 26, 87), "Species" = rep("Homo_sapiens", 5))
  aucRatio(n = 10, x = r, points = SpatialPoints(hs[,1:2]), E = 0.20)

cghaase/GARPTools documentation built on Aug. 6, 2021, 6:38 a.m.