Learn R Programming

glossa (version 1.2.2)

fit_bart_model: Fit a BART Model Using Environmental Covariate Layers

Description

This function fits a Bayesian Additive Regression Trees (BART) model using presence/absence data and environmental covariate layers.

Usage

fit_bart_model(y, x, seed = NULL, ...)

Value

A BART model object.

Arguments

y

A numeric vector indicating presence (1) or absence (0).

x

A data frame with the same number of rows as the length of the vector `y`, containing the covariate values.

seed

An optional integer value for setting the random seed for reproducibility.

...

Additional arguments passed to `dbarts::bart()`.