Package: rsamplr 0.2.0
rsamplr: Sampling Algorithms and Spatially Balanced Sampling
Fast tools for unequal probability sampling in multi-dimensional spaces, implemented in Rust for high performance. The package offers a wide range of methods, including Sampford (Sampford, 1967, <doi:10.1093/biomet/54.3-4.499>) and correlated Poisson sampling (Bondesson and Thorburn, 2008, <doi:10.1111/j.1467-9469.2008.00596.x>), pivotal sampling (Deville and Tillé, 1998, <doi:10.1093/biomet/91.4.893>), and balanced sampling such as the cube method (Deville and Tillé, 2004, <doi:10.1093/biomet/91.4.893>) to ensure auxiliary totals are respected. Spatially balanced approaches, including the local pivotal method (Grafström et al., 2012, <doi:10.1111/j.1541-0420.2011.01699.x>), spatially correlated Poisson sampling (Grafström, 2012, <doi:10.1016/j.jspi.2011.07.003>), and locally correlated Poisson sampling (Prentius, 2024, <doi:10.1002/env.2832>), provide efficient designs when the target variable is linked to auxiliary information.
Authors:
rsamplr_0.2.0.tar.gz
rsamplr_0.2.0.zip(r-4.7)rsamplr_0.2.0.zip(r-4.6)rsamplr_0.2.0.zip(r-4.5)
rsamplr_0.2.0.tgz(r-4.6-x86_64)rsamplr_0.2.0.tgz(r-4.6-arm64)rsamplr_0.2.0.tgz(r-4.5-x86_64)rsamplr_0.2.0.tgz(r-4.5-arm64)
rsamplr_0.2.0.tar.gz(r-4.7-arm64)rsamplr_0.2.0.tar.gz(r-4.7-x86_64)rsamplr_0.2.0.tar.gz(r-4.6-arm64)rsamplr_0.2.0.tar.gz(r-4.6-x86_64)
manual.pdf |manual.html✨
card.svg |card.png
rsamplr/json (API)
| # Install 'rsamplr' in R: |
| install.packages('rsamplr', repos = c('https://wpmg.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/envisim/rust-samplr/issues
Last updated from:774df4b8b3. Checks:12 OK, 1 FAIL. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 134 | ||
| linux-devel-x86_64 | OK | 123 | ||
| source / vignettes | OK | 187 | ||
| linux-release-arm64 | OK | 121 | ||
| linux-release-x86_64 | OK | 128 | ||
| macos-release-arm64 | OK | 151 | ||
| macos-release-x86_64 | OK | 256 | ||
| macos-oldrel-arm64 | OK | 183 | ||
| macos-oldrel-x86_64 | OK | 359 | ||
| windows-devel | OK | 171 | ||
| windows-release | OK | 116 | ||
| windows-oldrel | OK | 127 | ||
| wasm-release | FAIL | 161 |
Exports:balance_deviationbrewerconditional_poissoncpscubecube_stratifieddbd_circulardbd_circular_iterdbd_tcdbd_tc_iterdrawlcpslocal_cubelocal_cube_stratifiedlocal_mean_variancelpm_1lpm_1slpm_2lpm_2_hierarchicalparetopips_from_vectorpoissonrpmsampfordsample_to_indicatorscpsspatial_balance_allspatial_balance_all_equalspatial_balance_energyspatial_balance_energy_equalspatial_balance_localspatial_balance_local_equalspatial_balance_voronoispatial_balance_voronoi_equalspmsystematicsystematic_random_order
Dependencies:
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Distributionally balanced designs defaults | .dbd_defaults |
| Sampling defaults | .sampling_defaults |
| Balanced sampling | Balanced sampling cube cube_stratified |
| Distributionally balanced designs | dbd_circular dbd_tc Distributionally balanced designs |
| Doubly balanced sampling | Doubly balanced sampling local_cube local_cube_stratified |
| Draw from a sampling design | draw draw.dbd |
| Iterative evaluation of distributional designs | dbd_circular_iter dbd_tc_iter Iterative evaluation of distributional designs |
| Variance estimator for spatially balanced samples | local_mean_variance |
| Inclusion probabilities proportional-to-size | pips_from_vector |
| Transform a sample vector into an inclusion indicator vector | sample_to_indicator |
| Spatial balance measure | balance_deviation Spatial balance measure spatial_balance_all spatial_balance_all_equal spatial_balance_energy spatial_balance_energy_equal spatial_balance_local spatial_balance_local_equal spatial_balance_voronoi spatial_balance_voronoi_equal |
| Spatially balanced sampling | lcps lpm_1 lpm_1s lpm_2 lpm_2_hierarchical scps Spatially balanced sampling |
| Unequal probability sampling | brewer conditional_poisson cps pareto poisson rpm sampford spm systematic systematic_random_order Unequal probability sampling |
