proc_enm {enmpa} | R Documentation |
Partial ROC calculation
Description
proc applies partial ROC tests to model predictions.
Usage
proc_enm(test_prediction, prediction, threshold = 5, sample_percentage = 50,
iterations = 500)
Arguments
test_prediction |
(numeric) vector of model predictions for testing data. |
prediction |
|
threshold |
(numeric) value from 0 to 100 to represent the percentage of potential error (E) that the data could have due to any source of uncertainty. Default = 5. |
sample_percentage |
(numeric) percentage of testing data to be used in each bootstrapped process for calculating the partial ROC. Default = 50. |
iterations |
(numeric) number of bootstrap iterations to be performed; default = 500. |
Details
Partial ROC is calculated following Peterson et al. (2008) doi:10.1016/j.ecolmodel.2007.11.008.
Value
A list with the summary of the results and a data.frame containing the AUC values and AUC ratios calculated for all iterations.
Examples
# Loading a model prediction
pred <- terra::rast(system.file("extdata", "proj_out_wmean.tif",
package = "enmpa"))
# Simulated data
test <- runif(100, min = 0.3, max = 0.8)
# partial ROC calculation
pr <- proc_enm(test, pred, threshold = 5, sample_percentage = 50,
iterations = 500)
[Package enmpa version 0.1.8 Index]