kuenm_omrat | R Documentation |
kuenm_omrat calculates omission rates of geographic projections of ecological niche models based on one or multiple user-specified thresholds.
kuenm_omrat(model, threshold = 5, occ.tra, occ.test)
model |
a RasterLayer of the model to be evaluated. |
threshold |
(numeric vector) value(s) from 0 to 100 that will be used as thresholds, default = 5. |
occ.tra |
a numerical matrix containing coordinates of the occurrence data used to create the ecological niche model to be evaluated; columns must be: longitude and latitude. |
occ.test |
a numerical matrix containing coordinates of the occurrences used to test the ecological niche model to be evaluated; columns must be: longitude and latitude. |
A named numeric value or numeric vector with the result(s).
# single threshold
model <- raster::raster(system.file("extdata/sp_model.tif",
package = "kuenm"))
thres <- 5
data("sp_train", package = "kuenm")
data("sp_test", package = "kuenm")
om_rate <- kuenm_omrat(model, threshold = thres,
occ.tra = sp_train, occ.test = sp_test)
# multiple thresholds
thres1 <- c(5, 10, 20)
om_rate <- kuenm_omrat(model, threshold = thres1,
occ.tra = sp_train, occ.test = sp_test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.