mod_sel: Model selection and creation of MaxEnt arguments for selected...

View source: R/4.f.calibration.R

mod_selR Documentation

Model selection and creation of MaxEnt arguments for selected models

Description

This function will read an object of class ENMevaluation (See ?ENMeval::ENMevaluate for details) and return the results table with models selected by the chosen criteria. It can also return the necessary arguments for final model calibration and predictions.

Usage

mod_sel(
  x,
  mSel = c("AvgAIC", "EBPM", "WAAUC", "ESORIC", "LowAIC", "OR", "AUC"),
  wAICsum = 0.99,
  dAICc = 2,
  AUCmin = 0.7,
  randomseed = FALSE,
  responsecurves = TRUE,
  arg1 = "noaddsamplestobackground",
  arg2 = "noautofeature",
  save = "M"
)

Arguments

x

Object of class ENMevaluation

mSel

Character vector. Which criteria to use when selecting model(s). Currently implemented: "AvgAIC", "LowAIC", "OR", "AUC"

wAICsum

Cumulative sum of top ranked models for which arguments will be created

dAICc

Maximum delta AICc of models to be selected.

AUCmin

Minimum AUC value to select models using EBPM criteria.

randomseed

logical. Args to be passed to dismo::maxent. See ?dismo::maxent and the MaxEnt help for more information.

responsecurves

logical. Args to be passed to dismo::maxent. See ?dismo::maxent and the MaxEnt help for more information.

arg1

charater. Args to be passed to dismo::maxent. See ?dismo::maxent and the MaxEnt help for more information.

arg2

charater. Args to be passed to dismo::maxent. See ?dismo::maxent and the MaxEnt help for more information.

save

Should save args only ("A"), selected models only ("M") or both ("B")?

Value

A vector of args (if save="A"), data.frame of selected models (if save="M") or a list with both, args and selected models, (if save="B")

See Also

calib_mdl, calib_mdl_b, maxent, ENMevaluate, proj_mdl, proj_mdl_b

Examples

## Not run: 
ENMeval.res.lst <- ENMevaluate(occ.locs, occ.b.env, parallel = F , numCores = 1)
mod_sel(ENMeval.res.lst[[1]])

## End(Not run)

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