predict2.bm: Functions to get predictions from 'biomod2_model' objects

predict2.bmR Documentation

Functions to get predictions from biomod2_model objects

Description

This function allows the user to predict single models from biomod2_model on (new) explanatory variables.

Usage

predict2(object, newdata, ...)

## S4 method for signature 'biomod2_model'
predict(object, newdata, ...)

## S4 method for signature 'biomod2_model,SpatRaster'
predict2(object, newdata, predfun, seedval = NULL, ...)

## S4 method for signature 'biomod2_model,data.frame'
predict2(object, newdata, predfun, seedval = NULL, ...)

## S4 method for signature 'ANN_biomod2_model,SpatRaster'
predict2(object, newdata, ...)

## S4 method for signature 'ANN_biomod2_model,data.frame'
predict2(object, newdata, ...)

## S4 method for signature 'CTA_biomod2_model,SpatRaster'
predict2(object, newdata, ...)

## S4 method for signature 'CTA_biomod2_model,data.frame'
predict2(object, newdata, ...)

## S4 method for signature 'DNN_biomod2_model,SpatRaster'
predict2(object, newdata, ...)

## S4 method for signature 'DNN_biomod2_model,data.frame'
predict2(object, newdata, ...)

## S4 method for signature 'FDA_biomod2_model,SpatRaster'
predict2(object, newdata, ...)

## S4 method for signature 'FDA_biomod2_model,data.frame'
predict2(object, newdata, ...)

## S4 method for signature 'GAM_biomod2_model,SpatRaster'
predict2(object, newdata, ...)

## S4 method for signature 'GAM_biomod2_model,data.frame'
predict2(object, newdata, ...)

## S4 method for signature 'GBM_biomod2_model,SpatRaster'
predict2(object, newdata, ...)

## S4 method for signature 'GBM_biomod2_model,data.frame'
predict2(object, newdata, ...)

## S4 method for signature 'GLM_biomod2_model,SpatRaster'
predict2(object, newdata, ...)

## S4 method for signature 'GLM_biomod2_model,data.frame'
predict2(object, newdata, ...)

## S4 method for signature 'MARS_biomod2_model,SpatRaster'
predict2(object, newdata, ...)

## S4 method for signature 'MARS_biomod2_model,data.frame'
predict2(object, newdata, ...)

## S4 method for signature 'MAXENT_biomod2_model,SpatRaster'
predict2(object, newdata, ...)

## S4 method for signature 'MAXENT_biomod2_model,data.frame'
predict2(object, newdata, ...)

## S4 method for signature 'MAXNET_biomod2_model,SpatRaster'
predict2(object, newdata, ...)

## S4 method for signature 'MAXNET_biomod2_model,data.frame'
predict2(object, newdata, ...)

## S4 method for signature 'RF_biomod2_model,SpatRaster'
predict2(object, newdata, ...)

## S4 method for signature 'RF_biomod2_model,data.frame'
predict2(object, newdata, ...)

## S4 method for signature 'RFd_biomod2_model,SpatRaster'
predict2(object, newdata, ...)

## S4 method for signature 'RFd_biomod2_model,data.frame'
predict2(object, newdata, ...)

## S4 method for signature 'SRE_biomod2_model,SpatRaster'
predict2(object, newdata, ...)

## S4 method for signature 'SRE_biomod2_model,data.frame'
predict2(object, newdata, ...)

## S4 method for signature 'XGBOOST_biomod2_model,SpatRaster'
predict2(object, newdata, ...)

## S4 method for signature 'XGBOOST_biomod2_model,data.frame'
predict2(object, newdata, ...)

Arguments

object

a biomod2_model object

newdata

a data.frame or SpatRaster object containing data for new predictions

predfun

a function, generated by the predict2 method specific to each biomod2_model subclass and used within the generic predict2.biomod2_model.SpatRaster or predict2.biomod2_model.data.frame to do the prediction

seedval

(optional, default NULL)
An integer value corresponding to the new seed value to be set

...

(optional)

Author(s)

Rémi Lemaire-Patin

See Also

biomod2_model

Other Toolbox functions: getters.bm, getters.out, load_stored_object(), predict2.em, setters


biomod2 documentation built on Oct. 8, 2026, 5:09 p.m.