Learn R Programming

ENMTools (version 1.1.2)

enmtools.vip: 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,
  ...
)

Value

An enmtools.vip object

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.

Examples

Run this code
# \donttest{
#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)
}
# }

Run the code above in your browser using DataLab