This function fits a Bayesian Additive Regression Trees (BART) model using presence/absence data and environmental covariate layers.
fit_bart_model(y, x, seed = NULL)
A BART model object.
A numeric vector indicating presence (1) or absence (0).
A data frame with the same number of rows as the length of the vector `y`, containing the covariate values.
An optional integer value for setting the random seed for reproducibility.