powered by
Applies a series of criteria to select best candidate models.
model_selection(evaluation_stats, criterion = "TSS", exclude_bimodal = FALSE, tolerance = 0.01)
A data.frame with one or more selected models.
data.frame with the statistics of model evaluation results. These results are the output of the function evaluation_stats.
evaluation_stats
(character) metric used as the predictive criterion for model selection.
(logical) whether to exclude models in which binomial variable response curves were detected.
(numeric)
# 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