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