kuenm_omrat: Omission rates calculation for single models

View source: R/kuenm_omrat.R

kuenm_omratR Documentation

Omission rates calculation for single models

Description

kuenm_omrat calculates omission rates of geographic projections of ecological niche models based on one or multiple user-specified thresholds.

Usage

kuenm_omrat(model, threshold = 5, occ.tra, occ.test)

Arguments

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.

Value

A named numeric value or numeric vector with the result(s).

Examples

# 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)

manubio13/ku.enm documentation built on Jan. 5, 2024, 5:55 a.m.