View source: R/bart_functions.R
predict_bart | R Documentation |
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)
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.