Learn R Programming

sperrorest

Description

Spatial Error Estimation and Variable Importance

This package implements spatial error estimation and permutation-based spatial variable importance using different spatial cross-validation and bootstrap methods. Supported resampling methods include various types of block resampling, leave-one-out sampling with buffer, and resampling at the level of predefined groups; users can implement their own resampling functions. To cite {sperrorest} in publications, reference the paper by @Brenning2012. To see the package in action, please check the vignette "Spatial Modeling Use Case".

Installation

CRAN release version

install.packages("sperrorest")

Development version

remotes::install_github("giscience-fsu/sperrorest")

References

Brenning, A. 2005. Spatial Prediction Models for Landslide Hazards: Review, Comparison and Evaluation. Natural Hazards and Earth System Sciences 5 (6). Copernicus GmbH:853–62. https://doi.org/10.5194/nhess-5-853-2005

Brenning, A. 2012. Spatial Cross-Validation and Bootstrap for the Assessment of Prediction Rules in Remote Sensing: The R Package Sperrorest. In 2012 IEEE International Geoscience and Remote Sensing Symposium, 5372–5. https://doi.org/10.1109/IGARSS.2012.6352393

Russ, Georg, and A. Brenning. 2010a. Data Mining in Precision Agriculture: Management of Spatial Information. In Computational Intelligence for Knowledge-Based Systems Design: 13th International Conference on Information Processing and Management of Uncertainty, IPMU 2010, Dortmund, Germany, June 28 - July 2, 2010. Proceedings, edited by Eyke Hüllermeier, Rudolf Kruse, and Frank Hoffmann, 350–59. Springer. https://doi.org/10.1007/978-3-642-14049-5_36

Russ, G., and A. Brenning. 2010b. Spatial Variable Importance Assessment for Yield Prediction in Precision Agriculture. In Lecture Notes in Computer Science, 184–95. https://doi.org/10.1007/978-3-642-13062-5_18

Schratz, P., Muenchow, J., Iturritxa, E., Richter, J., Brenning, A. (2019). Hyperparameter tuning and performance assessment of statistical and machine-learning algorithms using spatial data. Ecological Modelling, 406: 109-120. https://doi.org/10.1016/j.ecolmodel.2019.06.002

Copy Link

Version

Install

install.packages('sperrorest')

Monthly Downloads

926

Version

3.0.5

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Alexander Brenning

Last Published

October 16th, 2022

Functions in sperrorest (3.0.5)

represampling_disc_bootstrap

Overlapping spatial block bootstrap using circular blocks
partition_kmeans

Partition samples spatially using k-means clustering of the coordinates
remove_missing_levels

remove_missing_levels
partition_tiles

Partition the study area into rectangular tiles
partition_disc

Leave-one-disc-out cross-validation and leave-one-out cross-validation
partition_cv_strat

Partition the data for a stratified (non-spatial) cross-validation
represampling_bootstrap

Non-spatial bootstrap resampling
partition_factor

Partition the data for a (non-spatial) leave-one-factor-out cross-validation based on a given, fixed partitioning
plot.represampling

Plot spatial resampling objects
partition_factor_cv

Partition the data for a (non-spatial) k-fold cross-validation at the group level
resample_strat_uniform

Draw stratified random sample
resample_uniform

Draw uniform random (sub)sample
runreps

runreps
sperrorest-package

Spatial Error Estimation and Variable Importance
resample_factor

Draw uniform random (sub)sample at the group level
represampling_factor_bootstrap

Bootstrap at an aggregated level
represampling_tile_bootstrap

Spatial block bootstrap using rectangular blocks
runfolds

runfolds
represampling_kmeans_bootstrap

Spatial block bootstrap at the level of spatial k-means clusters
sperrorest

Perform spatial error estimation and variable importance assessment
tile_neighbors

Determine the names of neighbouring tiles in a rectangular pattern
transfer_parallel_output

transfer_parallel_output
summary.represampling

title Summary statistics for a resampling objects
summary.sperrorestreperror

Summary and print methods for sperrorest results
summary.sperroresterror

Summarize error statistics obtained by sperrorest
summary.sperrorestimportance

Summarize variable importance statistics obtained by sperrorest
partition_cv

Partition the data for a (non-spatial) cross-validation
ecuador

J. Muenchow's Ecuador landslide data set
as.tilename

Alphanumeric tile names
dataset_distance

Calculate mean nearest-neighbour distance between point datasets
as.represampling

Resampling objects with repetition, i.e. sets of partitionings or bootstrap samples
add.distance

Add distance information to resampling objects
as.resampling

Resampling objects such as partitionings or bootstrap samples
maipo

Fruit-tree crop classification: the Maipo dataset
err_default

Default error function
get_small_tiles

Identify small partitions that need to be fixed.