mop: Extrapolation risk analysis

View source: R/8.3.f.metrics.MOP.R

mopR Documentation

Extrapolation risk analysis

Description

This function will compute the omission rate (OR) for a species' AICc Averaged Model from a 'mcmp' object, based on the selected threshold value.

Usage

mop(
  M,
  G,
  p = 0.1,
  q = 0.1,
  min.M.sz = 100,
  filename = NULL,
  scn.nm = "",
  numCores = 1,
  ...
)

Arguments

M

RasterStack of environmental variables from calibration area

G

RasterStack of environmental variables from projection area

p

Percent of values, sampled from calibration area, used as reference to calculate the MOP. Must be >0 and <=1.

q

Quantile. Proportion of closest points in M is to be compared with G to calculate the MOP. Must be >0 and <=1.

min.M.sz

Threshold value to be used to compute OR

filename

Output filename

scn.nm

Name of the climatic scenario used for saving results

numCores

Number of cores to use for parallelization. If set to 1, no paralellization is performed

...

Additional arguments:

datatype: Character. Output data type (e.g. 'INT2S' or 'FLT4S'). See dataType. If no datatype is specified, 'FLT4S' is used, unless this default value was changed with rasterOptions

overwrite: Logical. If TRUE, "filename" will be overwritten if it exists

progress: Character. Set a value to show a progress bar. Valid values are "text" and "window".

NAflag: Numeric. To overwrite the default value used to represent NA in a file

bandorder: Character. 'BIL', 'BIP', or 'BSQ'. For 'native' file formats only. For some other formats you can use the 'options' argument (see below)

options: Character. File format specific GDAL options. E.g., when writing a geotiff file you can use: options=c("COMPRESS=NONE", "TFW=YES")

You can use options=c("PROFILE=BASELINE") to create a plain tif with no GeoTIFF tags. This can be useful when writing files to be read by applications intolerant of unrecognised tags.

NetCDF files have the following additional, optional, arguments: varname, varunit, longname, xname, yname, zname, zunit

prj: Logical. If TRUE, the crs is written to a .prj file. This can be useful when writing to an ascii file or another file type that does not store the crs

setStatistics: logical. If TRUE (the default) the min and max cell values are written to file (if the format permits it)

Value

Data frame with average and variance of OR values across partition groups of data

See Also

mop_b


HemingNM/ENMwizard documentation built on Jan. 4, 2024, 3:24 p.m.