pred_pred.Rd
This function is called by the pred_pred module and calls disaggregation::predict_model() and disaggregation::predict_uncertainty() and also generates predicted cases. SpatRasters are wrapped to enable asynchronous operation.
pred_pred(
fit,
aggregation,
cases,
predict_iid,
uncertain = FALSE,
N = NULL,
CI = NULL,
async = FALSE
)
disag_model. Object returned by disag_model function that contains all the necessary objects for generating predictions.
SpatRaster. The aggregation raster
logical. Whether to predictions of cases
logical. Whether to generate predictions including the iid effect
logical. Whether or not to generate upper and lower credible intervals
numeric. The number of realisations to use when generating uncertainty predictions
numeric. The credible interval to user when generating uncertainty predictions.
logical. Whether or not the function is being used asynchronously
a list containing the predictions