Skip to contents

Produces raster prediction from SDM based on model and covariate layers.

Usage

predict_sdm(
  model,
  covariates,
  type = NULL,
  layer_name = "predicted_distribution"
)

Arguments

model

A model object.

covariates

SpatRaster covariate layers.

type

Scale of prediction (response, model, etc.).

layer_name

Name for predicted layer.

Value

SpatRaster prediction from model

Examples

if (FALSE) { # \dontrun{
  m <- glm(z ~ cov1, cov2, data = sdm_data)

  prediction <- predict_sdm(m, covs)

} # }