View source: R/model_selection.R
model_selection | R Documentation |
Applies a series of criteria to select best candidate models.
model_selection(evaluation_stats, criterion = "TSS", exclude_bimodal = FALSE,
tolerance = 0.01)
evaluation_stats |
data.frame with the statistics of model evaluation
results. These results are the output of the function
|
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) |
A data.frame with one or more selected models.
# data
data("cal_res", package = "enmpa")
eval_stats <- cal_res$summary[, -1]
# selecting best model
selected_mod <- model_selection(eval_stats, exclude_bimodal = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.