sdm model prediction

Share:

Description

Make a Raster object with predictions from one or several fitted model in sdmModel object.

Usage

1
2
## S4 method for signature 'sdmModel'
predict(object, newdata, filename="", models,species=1,scenario,mean=FALSE,overwrite=TRUE, ...)

Arguments

object

sdmModel object

newdata

Raster* object, or data.frame

filename

character, output file name, if missing, a name starts with sdm_prediction will be generated

models

character, names of fitted models, e.g., glm, brt, etc.

species

character or numeric, specifies which species should be used if the object contains models for multiple species

scenario

character, specifies the names of partitioning scenarios,if missing, all available scenarios are considered

mean

logical, works if multiple runs for partitioning scenarios are used to fit the models, and specifies whether a mean should be calculated over all predictions

overwrite

logical, whether the filename should be overwriten it it does exist

...

additional arguments, as for writeRaster

Details

predict uses the fitted models in the sdmModel to generate the prediction given newdata. A raster (if newdata is Raster object) or data.frame (if newdata is data.frame) will be created.

Value

a Raster object or data.frame

Author(s)

Babak Naimi naimi.b@gmail.com

http://biogeoinformatics.org

References

#

See Also

#

Examples

1
#