An R package for spatially balanced sampling.

The Spbsampling package provides functions to draw spatially balanced samples. In particular, the implemented sampling designs allow to select probability samples well spread over the population of interest, in any dimension and using any distance function (e.g. Euclidean distance, Manhattan distance).

For details regarding the implemented sampling designs, you may want to look at the references section.

The implementation has been done in C++ through the use of Rcpp and RcppArmadillo.

Authors: Francesco Pantalone, Roberto Benedetti, Federica Piersimoni.

Maintainer: Francesco Pantalone.


You can install the released version of Spbsampling from CRAN



Benedetti R, Piersimoni F (2017). A spatially balanced design with probability function proportional to the within sample distance. Biometrical Journal, 59(5), 1067–1084.

Benedetti R, Piersimoni F (2017). Fast Selection of Spatially Balanced Samples. arXiv.



Try the Spbsampling package in your browser

Any scripts or data that you put into this service are public.

Spbsampling documentation built on Aug. 24, 2020, 5:08 p.m.