predict_bart {glossa} | R Documentation |
Make Predictions Using a BART Model
Description
This function makes predictions using a Bayesian Additive Regression Trees (BART) model on a stack of environmental covariates ('SpatRaster').
Usage
predict_bart(bart_model, layers, cutoff = NULL)
Arguments
bart_model |
A BART model object obtained from fitting BART using the 'dbarts' package. |
layers |
A SpatRaster object containing environmental covariates for prediction. |
cutoff |
An optional numeric cutoff value for determining potential presences. If NULL, potential presences and absences will not be computed. |
Value
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.
[Package glossa version 1.2.2 Index]