Description Usage Arguments Value
This function performs n-fold cross-validation of a GDM model.
It requires a combined site pair ("spData" format) dataset, as well as the definition of the number of folds to be used in the cross-validation, the performance measure to be used and the optional use of geographical distance as predictor variable in the GDM.
For more details relating to "spData" data format, check gdm package.
| 1 | gdm.cv(spData, nfolds = 10, performance = "rmse", geo = F)
 | 
| spData | Combined site pair dataset ("spData" format). | 
| nfolds | Number of folds for cross-validation. Default is 10 folds. If number of folds equals number of samples then leave-one-out cross-validation is performed. | 
| performance | Performance metric to be used for validation:  | 
| geo | Optional use of geographical distance as predictor in GDM model. set to  | 
Returns model performance value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.