This function makes predictions using a Bayesian Additive Regression Trees (BART) model on a stack of environmental covariates ('SpatRaster').
predict_bart(bart_model, layers, cutoff = NULL)
A SpatRaster containing the mean, median, standard deviation, and quantiles of the posterior predictive distribution, as well as a potential presences layer if cutoff is provided.
A BART model object obtained from fitting BART using the 'dbarts' package.
A SpatRaster object containing environmental covariates for prediction.
An optional numeric cutoff value for determining potential presences. If NULL, potential presences and absences will not be computed.