Skip to content

SamplingStrata

1.5-5Package record

Optimal Stratification of Sampling Frames for Multipurpose Sampling Surveys

0packages depend
5.6Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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

CRAN checks
13OK
Slowest check: 3.6 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.5-5
README· In the repository, left out of the releaseVignettesYes · 3 · dynamicNEWSYes · 100% structuredCitation fileYes · cites a publicationWebsiteYes · pkgdown
Cites a JSS article
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

5.6K
CRAN downloads in the past year
Rank #5,776 · ~15/day · ~463/mo
Daily download trend is not available in this view yet.
45130 days
1.4K90 days
5.6K1 year
Compare downloads with other packages →
Also on112 r2u7 autocran132 c2d4u

Repository

16Stars
5Forks
2Open issues
0Open PRs
0Releases
870Commits
4Commit identities
License file reads as GPL-3.0 · 870 commits · Last activity 2026-10-13 · 0% stars, 30d · Default branch at 1.6, ahead of CRAN 1.5-5 (checked 2026-10-11)
Responsiveness
How these are sampled
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

2025-03-29 · 162026-07-07 · 16
PracticesBeta

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.

Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-07-09

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (6)
Author, Maintainer since 0.9 (2011)
Author · added in 1.2
Author · added in 1.3
Author · added in 2.15.3
Author · added in 2.15.3
Author · added in 1.1
Releases (25)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • 3.0.3Latest
    record
    2014-02-22 · current release · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 2.15.3
    record
    2013-01-14 · diff ↗
Show 26 earlier eventsHide 26 earlier events
  • R
    R 2.15.0 released · 2012-03-30
  • 2.14.2
    record
    2012-01-31 · diff ↗
  • R
    R 2.14.0 released · 2011-10-31
  • 2.13.2
    record
    2011-07-12 · diff ↗
  • 2.13.1
    record
    2011-04-27 · diff ↗ ·
    added 8 exports
    buildStrataDF, optimizeStrata, verify, updateStrata, updateFrame, selectSample, checkInput, bethel
  • 1.5-5
    record
    2025-10-08 · diff ↗
  • 1.5-4
    record
    2022-11-15 · diff ↗
  • 1.5-3
    record
    2022-08-28 · diff ↗
  • 1.5-2
    record
    2022-01-07 · diff ↗ ·
    added 2 exports
    selectSampleSpatial, procBethel
  • 1.5-1
    record
    2020-03-02 · diff ↗
  • 1.5
    record
    2020-01-23 · diff ↗ ·
    added 10 exports
    buildFrameSpatial, KmeansSolution2, KmeansSolutionSpatial, optimizeStrataSpatial, buildStrataDFSpatial, aggrStrata2, aggrStrataSpatial, computeGamma, optimStrata, prepareSuggestion
  • 1.4-1
    record
    2019-04-22 · diff ↗ ·
    added 2 exports
    summaryStrata, assignStrataLabel
  • 1.4
    record
    2019-01-02 · diff ↗ ·
    added 3 exports
    expected_CV, optimizeStrata2, plotStrata2d
  • 1.3
    record
    2018-10-08 · diff ↗ ·
    added 2 exports
    selectSampleSystematic, KmeansSolution
  • 1.2
    record
    2018-02-18 · diff ↗ ·
    added 2 exports
    adjustSize, buildFrameDF
  • 1.1
    record
    2016-01-13 · diff ↗ ·
    added 1 export
    plotSamprate
  • 1.0-4
    record
    2015-08-25 · diff ↗
  • 1.0-3
    record
    2014-10-21 · diff ↗
  • 1.0-2
    record
    2014-03-04 · diff ↗
  • 1.0-1
    record
    2013-01-16 · diff ↗
  • 1.0
    record
    2012-12-04 · diff ↗ ·
    removed 1 export
    verify
    added 2 exports
    tuneParameters, evalSolution
  • 0.9-3
    record
    2012-05-23 · diff ↗
  • 0.9-2
    record
    2012-01-24 · diff ↗ ·
    added 1 export
    var.bin
  • 0.9-1
    record
    2011-07-23 · diff ↗
  • 0.9
    record
    2011-04-29
  • R
    R 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for SamplingStrata version 1.5-5 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy