Skip to contents

Title

Usage

# S3 method for class 'xsdm'
predict(object, index = 1, scale = FALSE)

Arguments

object

An xsdm object

index

An integer ginving the row index from the sample of the posterior. Default 1

scale

Logical. Should be environmental scaled? This function takes the mean and standard deviation of provided ocurrence (presence/absence) points. This scale was used in the fit process. to weight the environmental data provided to predict

Value

A raster map

Examples

bio1_ts <- terra::unwrap(cmcc_cm_bio1)
envData <- list(bio1 = bio1_ts)
pts <- mus_virtualis
if (instantiate::stan_cmdstan_exists()) {
mod <- xsdm(envData, occ = pts, fit = "map" )
predict(mod)
}