This function calculates the optimal cutoff for presence-absence prediction using a BART model.
pa_optimal_cutoff(y, x, model, seed = NULL)
The optimal cutoff value for presence-absence prediction.
Vector indicating presence (1) or absence (0).
Dataframe with same number of rows as the length of the vector `y` with the covariate values.
A BART model object.
Random seed for reproducibility.