enmtools.vip: Takes an enmtools.model object, and performs variable...

View source: R/enmtools.vip.R

enmtools.vipR Documentation

Takes an enmtools.model object, and performs variable importance analyses on it using methods from the vip package

Description

Takes an enmtools.model object, and performs variable importance analyses on it using methods from the vip package

Usage

enmtools.vip(
  model,
  metric = "auc",
  nsim = 10,
  method = "permute",
  verbose = FALSE,
  ...
)

Arguments

model

An enmtools.model object

metric

The metric to use for measuring how variables affect model predictions

nsim

The number of simulations to be run for method "permute"

method

A character string or vector containing any combination of "model", "permute", "shap", or "firm". For details on what these mean, see the vip package help.

verbose

Controls printing of messages

...

Further arguments to be passed to vip's "vi" functions.

Value

An enmtools.vip object

Examples


#install.extras(repos='http://cran.us.r-project.org')
monticola.glm <- enmtools.glm(iberolacerta.clade$species$monticola,
                              env = euro.worldclim,
                              test.prop = 0.3)
if(check.extras("enmtools.vip")) {
  enmtools.vip(monticola.glm)
}


ENMTools documentation built on April 11, 2023, 6:09 p.m.