get models' outputs | R Documentation |
When SDMs are fitted using the sdm
function, a sdmModels
object is generated containing all the information and objects created through fitting and evaluation procedures for all species and methods. To each model, a unique modelID is assigned. getModelInfo
returns a data.frame summarising some information relevant to the fitted models including modelID, method name, whether the model is fitted successfully, whether and what replication procedure is used for data partitioning, etc. getModelInfo
helps to get the unique model IDs for all or certain models given the parameters that users specify. getModelObject
returns the fitted model object for a single model (specified through id
, or other settings).
getModelId(x,success,species,method,replication, run)
getModelInfo(x,...)
getModelObject(x,id,species,method,replication, run)
x |
a |
success |
logical; specifies whether the info/ids should be returned only for the models that are successfully fitted or not (default is TRUE) |
species |
optional; a character vector specifies the name of species for which the info should be returned (default is NULL meaning for all species) |
method |
optional; a character vector specifies the name of methods for which the info should be returned (default is NULL meaning for all methods) |
replication |
optional; a character vector specifies the name of replication method for which the info should be returned (default is NULL meaning for all species) |
run |
optional; a numeric vector specifies for which replication runs the info should be returned (default is NULL meaning for all runs) |
id |
a single numeric value specifying the modelID |
... |
additional arguments. see details |
in getModelInfo
, as additional arguments, you can use the arguments in the function getModelId
to specify which records should be returned.
getModelInfo: data.frame getModelId: a numeric vector getModelObject: The fitted model object with a class depending on the method
Babak Naimi naimi.b@gmail.com
https://www.biogeoinformatics.org/
Naimi, B., Araujo, M.B. (2016) sdm: a reproducible and extensible R platform for species distribution modelling, Ecography, 39:368-375, DOI: 10.1111/ecog.01881
#
file <- system.file("external/model.sdm", package="sdm")
m <- read.sdm(file)
getModelInfo(m)
# getModelId(m)
# getModelId(m,method='brt')
obj <- getModelInfo(m, id=3) # obj is the fitted BRT model (through the package of gbm)
class(obj) # The class of the model object
summary(obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.