| BIOMOD.models.out | R Documentation |
BIOMOD_Modeling() output object classClass returned by BIOMOD_Modeling, and used by
BIOMOD_LoadModels, BIOMOD_PresenceOnly,
BIOMOD_Projection and BIOMOD_EnsembleModeling
## S4 method for signature 'BIOMOD.models.out'
show(object)
object |
a |
modeling.ida character corresponding to the name (ID) of the
simulation set
dir.namea character corresponding to the modeling folder
sp.namea character corresponding to the species name
data.typea character corresponding to the data type
expl.var.namesa vector containing names of explanatory
variables
models.computeda vector containing names of computed models
models.faileda vector containing names of failed models
has.evaluation.dataa logical value defining whether evaluation
data is given
scale.modelsa logical value defining whether models have been
rescaled or not
formated.input.dataa BIOMOD.stored.formated.data-class
object containing informations from BIOMOD_FormatingData
object
calib.linesa BIOMOD.stored.data.frame-class object
containing calibration lines
models.optionsa BIOMOD.stored.options-class
object containing informations from bm_ModelingOptions
object
models.evaluationa BIOMOD.stored.data.frame-class object
containing models evaluation
variables.importancea BIOMOD.stored.data.frame-class object
containing variables importance
models.predictiona BIOMOD.stored.data.frame-class object
containing models predictions
models.prediction.evala BIOMOD.stored.data.frame-class
object containing models predictions for evaluation data
linka character containing the file name of the saved object
calla language object corresponding to the call used to obtain the object
Damien Georges
BIOMOD_Modeling, BIOMOD_LoadModels,
BIOMOD_PresenceOnly, BIOMOD_Projection,
BIOMOD_EnsembleModeling, bm_VariablesImportance,
bm_PlotEvalMean, bm_PlotEvalBoxplot,
bm_PlotVarImpBoxplot, bm_PlotResponseCurves
Other Toolbox objects:
BIOMOD.ensemble.models.out,
BIOMOD.formated.data,
BIOMOD.formated.data.PA,
BIOMOD.models.options,
BIOMOD.options.dataset,
BIOMOD.options.default,
BIOMOD.projection.out,
BIOMOD.rangesize.out,
BIOMOD.stored.data,
biomod2_ensemble_model,
biomod2_model
showClass("BIOMOD.models.out")
## ----------------------------------------------------------------------- #
library(terra)
# Load species occurrences (6 species available)
data(DataSpecies)
head(DataSpecies)
# Select the name of the studied species
myRespName <- 'GuloGulo'
# Get corresponding presence/absence data
myResp <- as.numeric(DataSpecies[, myRespName])
# Get corresponding XY coordinates
myRespXY <- DataSpecies[, c('X_WGS84', 'Y_WGS84')]
# Load environmental variables extracted from BIOCLIM (bio_3, bio_4, bio_7, bio_11 & bio_12)
data(bioclim_current)
myExpl <- terra::rast(bioclim_current)
## ----------------------------------------------------------------------- #
# Format Data with true absences
myBiomodData <- BIOMOD_FormatingData(resp.name = myRespName,
resp.var = myResp,
resp.xy = myRespXY,
expl.var = myExpl)
## ----------------------------------------------------------------------- #
# Model single models
myBiomodModelOut <- BIOMOD_Modeling(bm.format = myBiomodData,
modeling.id = 'AllModels',
models = c('RF', 'GLM'),
CV.strategy = 'random',
CV.nb.rep = 2,
CV.perc = 0.8,
OPT.strategy = 'bigboss',
metric.eval = c('TSS', 'AUCroc'),
var.import = 3,
seed.val = 42)
myBiomodModelOut
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.