| BIOMOD.models.out {biomod2} | R Documentation |
BIOMOD_Modeling() output object class
Description
Class returned by BIOMOD_Modeling, and used by
BIOMOD_LoadModels, BIOMOD_PresenceOnly,
BIOMOD_Projection and BIOMOD_EnsembleModeling
Usage
## S4 method for signature 'BIOMOD.models.out'
show(object)
Arguments
object |
a |
Slots
modeling.ida
charactercorresponding to the name (ID) of the simulation setdir.namea
charactercorresponding to the modeling foldersp.namea
charactercorresponding to the species nameexpl.var.namesa
vectorcontaining names of explanatory variablesmodels.computeda
vectorcontaining names of computed modelsmodels.faileda
vectorcontaining names of failed modelshas.evaluation.dataa
logicalvalue defining whether evaluation data is givenscale.modelsa
logicalvalue defining whether models have been rescaled or notformated.input.dataa
BIOMOD.stored.formated.data-classobject containing informations fromBIOMOD_FormatingDataobjectcalib.linesa
BIOMOD.stored.data.frame-classobject containing calibration linesmodels.optionsa
BIOMOD.stored.options-classobject containing informations frombm_ModelingOptionsobjectmodels.evaluationa
BIOMOD.stored.data.frame-classobject containing models evaluationvariables.importancea
BIOMOD.stored.data.frame-classobject containing variables importancemodels.predictiona
BIOMOD.stored.data.frame-classobject containing models predictionsmodels.prediction.evala
BIOMOD.stored.data.frame-classobject containing models predictions for evaluation datalinka
charactercontaining the file name of the saved object
Author(s)
Damien Georges
See Also
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.stored.data,
biomod2_ensemble_model,
biomod2_model
Examples
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.var = myResp,
expl.var = myExpl,
resp.xy = myRespXY,
resp.name = myRespName)
## ----------------------------------------------------------------------- #
# 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','ROC'),
var.import = 3,
seed.val = 42)
myBiomodModelOut