pa_optimal_cutoff {glossa} | R Documentation |
Optimal Cutoff for Presence-Absence Prediction
Description
This function calculates the optimal cutoff for presence-absence prediction using a BART model.
Usage
pa_optimal_cutoff(y, x, model, seed = NULL)
Arguments
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. |
Value
The optimal cutoff value for presence-absence prediction.
[Package glossa version 1.2.2 Index]