Learn R Programming

glossa (version 1.0.0)

pa_optimal_cutoff: 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)

Value

The optimal cutoff value for presence-absence prediction.

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.