Ensemble Forecasting of SDMs

Share:

Description

Make a Raster object with a weighted averaging over all predictions from several fitted model in a sdmModel object.

Usage

1
2
## S4 method for signature 'sdmModel'
ensemble(m, predictors, filename="")

Arguments

m

sdmModel object

predictors

Raster* object

filename

character, output file name

Details

ensemble function uses the fitted models in the sdmModel to generate the prediction given predictor variables. A raster will be created.

Value

a Raster object

Author(s)

Babak Naimi naimi.b@gmail.com

http://biogeoinformatics.org

References

#

See Also

#

Examples

1
2
3
4
5
6
7
8
# filename <- system.file('external/preds.grd',packages='sdmo')

# r <- brick(filename)
# s <- shapefile('pkg/sdm/inst/external/species.shp')
# d <- sdmData(s,r)
# m <- sdm(Occurrence~.,d,c('glm','brt','rf'))
# e <- ensemble(m,r,'test.grd')
# plot(e)