pa_optimal_cutoff: Optimal Cutoff for Presence-Absence Prediction

View source: R/bart_functions.R

pa_optimal_cutoffR 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.


glossa documentation built on Oct. 15, 2024, 5:08 p.m.