Optimal Stratification of Sampling Frames for Multipurpose Sampling Surveys
Overview
Tools for the optimization of stratified sampling design. It determines a stratification of a sampling frame that minimizes sample cost while satisfying precision constraints in a multivariate and multidomain context. The approach relies on a genetic algorithm; each candidate partition of the frame is an individual whose fitness is evaluated via the Bethel-Chromy allocation to meet target precisions. Functions support analysis of optimization results, labeling of the frame with new strata, and drawing a sample according to the optimal allocation. Algorithmic components adapt code from the 'genalg' package. See M. Ballin and G. Barcaroli (2020) "R package SamplingStrata: new developments and extension to Spatial Sampling" doi:10.48550/arXiv.2004.09366.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 39
- Examples that run
- 0%1 only when donttest examples are enabled (R CMD check --as-cran) · 31 never run · 6 hold no code
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 97%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
Commits over time
4 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/barcaroli/samplingstrata on 2026-10-11.
Dependencies
Installing SamplingStrata adds 10 packages (5 with compiled code, 1.5 MB of source tarballs). Heaviest: rlang 766 KB, iterators 293 KB, doParallel 160 KB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 3.0.3Latest
- RR 3.0.0 released · 2013-04-03
- 2.15.32013-01-14 · diff ↗
Show 26 earlier eventsHide 26 earlier events
- RR 2.15.0 released · 2012-03-30
- 2.14.22012-01-31 · diff ↗
- RR 2.14.0 released · 2011-10-31
- 2.13.22011-07-12 · diff ↗
- 2.13.12011-04-27 · diff ↗ ·
added 8 exports
buildStrataDF, optimizeStrata, verify, updateStrata, updateFrame, selectSample, checkInput, bethel - 1.5-52025-10-08 · diff ↗
- 1.5-42022-11-15 · diff ↗
- 1.5-32022-08-28 · diff ↗
- 1.5-2
- 1.5-12020-03-02 · diff ↗
- 1.52020-01-23 · diff ↗ ·
added 10 exports
buildFrameSpatial, KmeansSolution2, KmeansSolutionSpatial, optimizeStrataSpatial, buildStrataDFSpatial, aggrStrata2, aggrStrataSpatial, computeGamma, optimStrata, prepareSuggestion - 1.4-1
- 1.4
- 1.3
- 1.2
- 1.1
- 1.0-42015-08-25 · diff ↗
- 1.0-32014-10-21 · diff ↗
- 1.0-22014-03-04 · diff ↗
- 1.0-12013-01-16 · diff ↗
- 1.0
- 0.9-32012-05-23 · diff ↗
- 0.9-2
- 0.9-12011-07-23 · diff ↗
- 0.92011-04-29
- RR 2.13.0 released · 2011-04-13
Package metadata
- First published
- 2011-04-27
- Total releases
- 25 / 15 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 174 KB / 7 files
- Download size
- 4.3 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("SamplingStrata")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v061.i04.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.