Skip to contents

Predict the output for a new dataset from a trained Maxnet model.

Usage

# S4 method for Maxnet
predict(
  object,
  data,
  type = c("link", "exponential", "cloglog", "logistic"),
  clamp = TRUE
)

Arguments

object

Maxnet object.

data

data.frame with the data for the prediction.

type

character. Maxnet output type, possible values are "link", "exponential", "cloglog" and "logistic".

clamp

logical for clumping during prediction.

Value

A vector with the predicted values.

Details

Used by the predict,SDMmodel-method, not exported.

Author

Sergio Vignali