find_best_model: Function to find the best n-dimensional ellipsoid model using...

Description Usage Arguments Value

View source: R/find_best_model.R

Description

Function to find the best n-dimensional ellipsoid model using Partial Roc as a performance criteria.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
find_best_model(
  this_species,
  cor_threshold = 0.9,
  ellipsoid_level = 0.975,
  nvars_to_fit = 3,
  plot3d = FALSE,
  E = 0.05,
  RandomPercent = 50,
  NoOfIteration = 1000,
  parallel = TRUE,
  n_cores = 4
)

Arguments

this_species,

Species Temporal Environment "sp.temporal.env" object see extract_by_year.

cor_threshold

Threshold valuefrom which it is considered that the correlation is high see correlation_finder.

ellipsoid_level

The proportion of points to be included inside the ellipsoid see ellipsoidfit.

nvars_to_fit

Number of variables that will be used to model.

plot3d

Logical. If the models have 3 varibles an rgl plot will be shown

E

Amount of error admissible for Partial Roc test (by default =.05). Value should range between 0 - 1. see PartialROC

RandomPercent

Occurrence points to be sampled in randomly for the boostrap of the Partial Roc test PartialROC.

NoOfIteration

Number of iteration for the bootstrapping of the Partial Roc test PartialROC.

parallel

Logical argument to run computations in parallel. Default TRUE

n_cores

Number of cores to be used in parallelization. Default 4

Value

A "sp.temp.best.model" object with metadata of the best model given the performance of the Partial Roc test.


luismurao/hsi documentation built on Dec. 26, 2021, 9:53 a.m.