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