Spatially Balanced Sampling

Selection of 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 more details, Benedetti R and Piersimoni F (2017) and Benedetti R and Piersimoni F (2017) . The implementation has been done in C++ through the use of 'Rcpp' and 'RcppArmadillo'.


News

Spbsampling 1.2.0

  • Changed output of functions pwd(), swd() and hpwd() from a matrix of dimension (nsamp * nrepl) * 2 to a matrix of dimension nrepl * nsamp.
  • Removed Rdpack from Imports.
  • Minor improvements of guides.
  • Changed name of file heurprod.cpp to hpwd.cpp

Spbsampling 1.1.0

New features

  • Added a new function sbi() for compute the spatial index of a sample, implemented in C++ through the Armadillo library, using Rcpp and RcppArmadillo.
  • In the function pwd() and swd() the parameter nrepl is now set to default at 1.
  • In the function pwd() and swd() the parameter niter is now set to default at 10.
  • In the function stprod() and stsum() the parameter differ is now set to default at 1e-15.
  • In the function stprod() and stsum() the parameter niter is now set to default at 1000.
  • In the function stprod() and stsum() there is no print for each convergence step anymore.

Improvements under the hood

  • The functions pwd() and swd() now take advantages of the Armadillo library.
  • The function stprod() is now implemented in C++ through the Armadillo library, using Rcpp and RcppArmadillo.
  • The function stsum() is now implemented in C++ through the Armadillo library, using Rcpp and RcppArmadillo.
  • The function hpwd() is now implemented in C++ through the Armadillo library, using Rcpp and RcppArmadillo.
  • In all the functions there are now checks about the correct inputs.

Minor improvements

  • Correction of some typos along the guides.

Miscellaneous

  • Added a NEWS.md file to track changes to the package.
  • Updated DESCRIPTION file.

Spbsampling 1.0.0

  • First release on CRAN.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("Spbsampling")

1.3.0 by Francesco Pantalone, 4 months ago


Browse source code at https://github.com/cran/Spbsampling


Authors: Francesco Pantalone [aut, cre] , Roberto Benedetti [aut] , Federica Piersimoni [aut]


Documentation:   PDF Manual  


GPL-3 license


Imports Rcpp

Linking to Rcpp, RcppArmadillo


See at CRAN