Species distribution modeling and k-fold cross validation for a set of presence/absence data per species, also considering different background extents (optional). Algorithms supported are "glm", "svm", "maxent", "mars", "rf", "cart.rpart" and "cart.tree"
mopaTrain0(y, x, k = 10, algorithm = c("glm", "svm", "maxent", "mars", "rf",
"cart.rpart", "cart.tree"), algorithm.args = NULL, weighting = FALSE,
threshold = NULL, diagrams = FALSE, tuneRF.args = NULL,
plotnames = "unnamed")
RasterStack of variables for modelling
Object returned by function link[mopa]{pseudoAbsences}
or list/s of data frames with coordinates
in the first two columns and presence/absence (1=presence, 0=absence) in the third column.
Integer. Number of folds for cross validation. Default is 10
Any character of the following: "glm", "svm", "maxent", "mars", "rf", "cart.rpart" or "cart.tree"
Further arguments to be passed to the selected algorithm for modeling (functions involved are described in details)
Logical for "glm", "mars" and "rf" fitting with weighted presence/absences-s. Default is FALSE.
Cut value between 0 and 1 to calculate the confusion matrix. Default is NULL (see Details).
logical. Only applied if x
contains data for different background extents
(see backgroundRadius
and pseudoAbsences
). Should diagrams of
AUC extent fitting be printed? default is FALSE.
list of arguments from function tuneRF
. Only used when algorihm = "rf"
names to be printed in the diagrams
A list of six components is returned for each species in x
:
fitted model using all data for training
AUC statistic in the cross validation
kappa statistic in the cross validation
true skill statistic in the cross validation
fitted model with partitioned data
cross model prediction
Iturbide, M., Bedia, J., Herrera, S., del Hierro, O., Pinto, M., Gutierrez, J.M., 2015. A framework for species distribution modelling with improved pseudo-absence generation. Ecological Modelling. DOI:10.1016/j.ecolmodel.2015.05.018.
mopaPredict
, pseudoAbsences
, backgroundGrid
,
OCSVMprofiling
, backgroundRadius