R/CartoPred.R
Map_predict.Rd
Create Multilayer raster for predictions and uncertainty analysis
Map_predict( object, saveWD, mask = NULL, Num = NULL, model = NULL, modeltype = NULL, powerXI = NULL, zip.file = TRUE, cl = NULL )
object | Multi-layer Raster with at least covariates of the model selected |
---|---|
saveWD | directory where outputs of the cross-validation procedure have been saved or zip.file of this directory. All necessary information have been saved in this directory to be able to compile results. This is the only output of findBestModel in the global R environment. |
mask | Optional Raster object to be used as mask for output raster: NA values of the mask raster induce NA values in the predictions. |
Num | numeric The 'Num' value of the model retained for further analysis like those saved in AllModels_crossV_ordered. Not useful if model and Family are set. Default to the first model in AllModels_crossV_ordered. |
model | character string A user-defined model specification. This requires to set the Family parameter. This overrides effects of 'Num', however, if the model exists with the exact same expression in the list of model fitted, 'Num' will be re-attributed. |
modeltype | The type of the model as chosen among modeltypes available
(see |
powerXI | XI parameter for a tweedie model. |
zip.file | TRUE (default) to save all outputs in a zipfile with saveWD, FALSE for no zipfile output, or path to a new zip file |
cl | a cluster as made with |