Learn R Programming

Spbsampling

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.

Installation

You can install the released version of Spbsampling from CRAN

install.packages("Spbsampling")

References

Pantalone F, Benedetti R, Piersimoni F (2022). An R Package for Spatially Balanced Sampling. Journal of Statistical Software, Code Snippets, 103(2), 1-22.

Benedetti R, Piersimoni F (2017). A spatially balanced design with probability function proportional to the within sample distance. Biometrical Journal, 59(5), 1067–1084. https://doi.org/10.1002/bimj.201600194

Benedetti R, Piersimoni F (2017). Fast Selection of Spatially Balanced Samples. arXiv. https://arxiv.org/abs/1710.09116

License

GPL-3

Copy Link

Version

Install

install.packages('Spbsampling')

Monthly Downloads

263

Version

1.3.5

License

GPL-3

Maintainer

Francesco Pantalone

Last Published

August 24th, 2022

Functions in Spbsampling (1.3.5)

stsum

Standardize a symmetric matrix (distances) to fixed row (column) totals
swd

Sum Within Distance (Spatially Balanced Sampling Design)
Spbsampling

Spatially balanced sampling designs
income_emilia

The income of municipalities of "Emilia Romagna".
sbi

Spatial Balance Index
hpwd

Heuristic Product Within Distance (Spatially Balanced Sampling Design)
stprod

Standardize a symmetric matrix (distances) to fixed row (column) products
pwd

Product Within Distance (Spatially Balanced Sampling Design)
simul2

Simulated Population 2.
lucas_abruzzo

LUCAS data for the region "Abruzzo", Italy.
simul3

Simulated Population 3.
simul1

Simulated Population 1.