Learn R Programming

enmpa (version 0.2.1)

model_selection: Selection of best candidate models considering various criteria

Description

Applies a series of criteria to select best candidate models.

Usage

model_selection(evaluation_stats, criterion = "TSS", exclude_bimodal = FALSE,
                tolerance = 0.01)

Value

A data.frame with one or more selected models.

Arguments

evaluation_stats

data.frame with the statistics of model evaluation results. These results are the output of the function evaluation_stats.

criterion

(character) metric used as the predictive criterion for model selection.

exclude_bimodal

(logical) whether to exclude models in which binomial variable response curves were detected.

tolerance

(numeric)

Examples

Run this code
# data
data("cal_res", package = "enmpa")
eval_stats <- cal_res$summary[, -1]

# selecting best model
selected_mod <- model_selection(eval_stats, exclude_bimodal = TRUE)

Run the code above in your browser using DataLab