enmtools.vip {ENMTools}R 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 = "roc_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)
}


[Package ENMTools version 1.1.2 Index]