Make a RasterLayer with predictions from a fitted model object.
# S4 method for cnfa
predict(object, newdata, filename = "", parallel = FALSE, n = 1, ...)# S4 method for enfa
predict(object, newdata, filename = "", parallel = FALSE, n = 1, ...)
# S4 method for departure
predict(object, filename = "", parallel = FALSE, n = 1, ...)
# S4 method for vulnerability
predict(object, newdata, filename = "", parallel = FALSE, n = 1, ...)
model object
optional new data
character. Optional filename to save the RasterBrick output
to file. If this is not provided, a temporary file will be created for large
x
logical. If TRUE
then multiple cores are utilized
numeric. Number of CPU cores to utilize for parallel processing
Additional arguments for writeRaster
Returns a RasterLayer of sensitivity, departure, or vulnerability predictions, depending on the class of object.