optOccThresh: Create binary presence/ absence predictions from...

View source: R/SDMFunctions.R

optOccThreshR Documentation

Create binary presence/ absence predictions from probabilities of occurrence.

Description

This function optimises a threshold probability above which a grid cell is classed as a presence, and below which it is classed as an absence. Optimisation is achieved by maximising the proportion of data correctly classified.

Usage

optOccThresh(inPath, group, species, outPath, map, presAb)

Arguments

inPath

String. Path to the ensemble model outputs.

group

string. Taxonomic group. There must be a file in inPath.

species

String. There must be a file in inPath called /<group>/<species>.asc.

outPath

String. Where to store the outputs.

map

Logical. If true writes an ascii file to outPath.

presAb

String. Presence/ pseudo absence data created by createPresAb for the chosen group.

Value

A dataframe with four columns: Threshold probability of occurrence, species and group. Optionally a raster can be written to file.


robboyd/soaR documentation built on April 24, 2022, 9:44 a.m.