Skip to contents

Rows with missing predictors are dropped before predicting rather than predicted and discarded, since the recipe's step_naomit() is skipped at bake time and would otherwise yield NA probabilities.

Usage

predict_grid(model, grid, uncertainty = NULL)

Arguments

model

a fitted model from fit_patch_model()

grid

a covariate grid from covariate_grid()

uncertainty

settings from uncertainty_settings(), or NULL for the point estimate alone

Value

a tibble of lon, lat, suitability, and, with uncertainty, the spread and novelty columns; NULL if no complete rows