Learn R Programming

spm2 (version 1.1.3)

Spatial Predictive Modeling

Description

An updated and extended version of 'spm' package, by introducing some further novel functions for modern statistical methods (i.e., generalised linear models, glmnet, generalised least squares), thin plate splines, support vector machine, kriging methods (i.e., simple kriging, universal kriging, block kriging, kriging with an external drift), and novel hybrid methods (228 hybrids plus numerous variants) of modern statistical methods or machine learning methods with mathematical and/or univariate geostatistical methods for spatial predictive modelling. For each method, two functions are provided, with one function for assessing the predictive errors and accuracy of the method based on cross-validation, and the other for generating spatial predictions. It also contains a couple of functions for data preparation and predictive accuracy assessment.

Copy Link

Version

Install

install.packages('spm2')

Monthly Downloads

227

Version

1.1.3

License

GPL (>= 2)

Maintainer

Jin Li

Last Published

April 6th, 2023

Functions in spm2 (1.1.3)

decimaldigit

Digit number after decimal point for a numeric variable
glmidwcv

Cross validation, n-fold and leave-one-out for the hybrid method of generalised linear models ('glm') and inverse distance weighted ('IDW') ('glmidw')
glmcv

Cross validation, n-fold and leave-one-out for generalised linear models ('glm')
datasplit

Split data for k-fold cross-validation
cran-comments

Note on notes
gbmkrigeidwcv

Cross validation, n-fold and leave-one-out for the hybrid methods of generalized boosted regression modeling ('gbm'), 'kriging' and inverse distance weighted ('IDW').
glmidwpred

Generate spatial predictions using the hybrid method of generalised linear models ('glm') and inverse distance weighted ('IDW') ('glmidw')
gbmkrigeidwpred

Generate spatial predictions using the hybrid methods of generalized boosted regression modeling ('gbm'), 'kriging' and inverse distance weighted ('IDW').
bees

A dataset of bees count data and relevant information in oilseed Brassica fields in an Australian temperate landscape.
ccr

Correct classification rate for predictive models based on cross -validation
glmkrigeidwpred

Generate spatial predictions using the hybrid methods of generalised linear models ('glm'), 'kriging' and inverse distance weighted ('IDW').
glmkrigecv

Cross validation, n-fold and leave-one-out for the hybrid method of generalised linear models ('glm') and 'krige' ('glmkrige')
glsidwcv

Cross validation, n-fold and leave-one-out for the hybrid method of generalized least squares ('gls') and inverse distance weighted ('idw') (glsidw)
glmnetcv

Cross validation, n-fold and leave-one-out, for 'glmnet' in 'glmnet' package
glsidwpred

Generate spatial predictions using the hybrid method of generalized least squares ('gls') and inverse distance weighted ('IDW') ('glsidw')
glskrigecv

Cross validation, n-fold and leave-one-out for the hybrid method of generalized least squares ('gls') and kriging ('krige') ('glskrige')
glscv

Cross validation, n-fold and leave-one-out for generalized least squares ('gls')
glmkrigepred

Generate spatial predictions using the hybrid method of generalised linear models ('glm') and 'krige'
glmkrigeidwcv

Cross validation, n-fold and leave-one-out for the hybrid methods of generalised linear models ('glm'), 'kriging' and inverse distance weighted ('IDW').
glmpred

Generate spatial predictions using generalised linear models ('glm')
sponge2

A dataset of sponge species richness in the Timor Sea region, northern Australia marine margin
krigecv

Cross validation, n-fold and leave-one-out for kriging methods ('krige')
glskrigeidwpred

Generate spatial predictions using the hybrid methods of generalised least squares ('gls'), 'kriging' and inverse distance weighted ('IDW')
rfkrigeidwcv

Cross validation, n-fold and leave-one-out for the hybrid methods of 'random forest' ('RF'), 'kriging' and inverse distance weighted ('IDW')
glskrigeidwcv

Cross validation, n-fold and leave-one-out for the hybrid methods of generalised least squares ('gls'), 'kriging' and inverse distance weighted ('IDW')
glskrigepred

Generate spatial predictions using the hybrid method of generalized least squares ('gls') and kriging ('krige') ('glskrige')
krigepred

Generate spatial predictions using kriging methods ('krige')
rfkrigeidwpred

Generate spatial predictions using the hybrid methods of 'random forest' ('RF'), 'kriging' and inverse distance weighted ('IDW').
spongelonglat

A dataset of sponge species richness in the Timor Sea region, northern Australia marine margin
glspred

Generate spatial predictions using generalized least squares ('gls')
svmkrigeidwpred

Generate spatial predictions using the hybrid methods of support vector machine ('svm') regression , 'kriging' and inverse distance weighted ('IDW').
tpscv

Cross validation, n-fold and leave-one-out for thin plate splines ('TPS')
svmidwpred

Generate spatial predictions using the hybrid method of support vector machine ('svm') regression and inverse distance weighted ('IDW') ('svmidw')
svmkrigeidwcv

Cross validation, n-fold and leave-one-out for the hybrid methods of support vector machine ('svm') regression , 'kriging' and inverse distance weighted ('IDW').
svmkrigecv

Cross validation, n-fold and leave-one-out for the hybrid method of support vector machine ('svm') regression and 'krige' (svmkrige)
svmkrigepred

Generate spatial predictions using the hybrid method of support vector machine ('svm') regression and 'krige' (svmkrige)
svmidwcv

Cross validation, n-fold and leave-one-out for the hybrid method of support vector machine ('svm') regression and inverse distance weighted ('IDW') (svmidw)
svmpred

Generate spatial predictions using support vector machine ('svm')
svmcv

Cross validation, n-fold and leave-one-out for support vector machine ('svm')