Description Usage Arguments Examples
repeated k-fold cross-validation. Calculate model preformance metrics, disribution, standard deviation and occurence maps.
1 2 3 4 5 |
Ncv |
Number of cv repititions. |
Kfold |
Number of folds. Usually take 10 or 5. |
data |
|
method |
SDM methos used: "gam", "rf", "gbm", "max", or "gbm.step". See details for details |
responsetype |
Type of the response: "count", "continuous", or "presence". Presence denotes bimodal responses [0|1] |
response |
Column name of response in data argument |
predictors |
Column names of predictors to use in data argument |
secondary |
Column name in data. Use this to calculate model performance metrics from instead of response. Default is NULL. |
strata |
criterion for fold generation. #FIXME |
enviStack |
|
enviPix |
|
seed |
Integer. You probably want reproduceability. Note that Maxent's pseudoabsence generation can't be seeded this way–so expect those results to vary |
aggregated |
logical or |
pseudoabsence |
logical or |
gbm.trees |
gbm.trees param for dismo::gbm |
maxargs |
argument to pass tp maxent |
rast |
return |
flat |
return model performance metrics only (as |
... |
ellipsis is used to pass arguments to subsequent functions like |
1 2 3 4 5 6 7 8 9 10 11 12 | data<-get.environ(species,deutschebucht)
cv<-crossvalid(Ncv=1,Kfold=5,data=data,method="rf",responsetype = "continuous", response = "species1", predictors = c("mgs","mud","depth"),enviStack = deutschebucht,seed=23, check.names = FALSE)
# aggregated results
cv$metric.agg
# plot result maps
par(mfrow=c(2,2))
plot(cv$rmean,main="cv prediction")
plot(cv$sd,main="standart deviation")
plot(raster(deutschebucht,layer=match("species1",names(deutschebucht))),main="true distribution")
plot(cv$rbin,main="prob. of occurrence")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.