Sequential Poisson Sampling
Overview
Sequential Poisson sampling is a variation of Poisson sampling for drawing probability-proportional-to-size samples with a given number of units, and is commonly used for price-index surveys. This package gives functions to draw stratified sequential Poisson samples according to the method by Ohlsson (1998, ISSN:0282-423X), as well as other order sample designs by Rosén (1997, doi:10.1016/S0378-3758(96)00186-3), and generate approximate bootstrap replicate weights according to the generalized bootstrap method by Beaumont and Patak (2012, doi:10.1111/j.1751-5823.2011.00166.x).
- Added a new option
sps.usekitto control if{kit}is used for partial
sorting.
- Added a new vignette about sampling performance.
- Fixed poorly-rendered tables in vignettes.
sps_iterator()is now much faster for large populations.- Code is now hosted on codeberg.
- License has changed from MIT to GPL (>= 3).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 7 (1 internal)includes a package overview page
- Examples that run
- 100%6 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 98%
- Return-value docs
- 100%
- Help pages citing references
- 43% with a bibliography file
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- GitHub only
- Median days to close, 50 most recently updated closed PRs
- GitHub only
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
- github.com/marberts/sps · last recorded on 2026-08-30
Repository codeberg.org/marberts/sps is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.
Dependencies
Installing sps adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.7.0Latest
- 0.6.42026-07-19 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 0.6.32025-11-19 · diff ↗
- 0.6.2
- 0.6.12025-07-10 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.6.0
- RR 4.4.0 released · 2024-04-24
- 0.5.4
- 0.5.32023-10-16 · diff ↗
- 0.5.22023-08-22 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.5.02023-04-10 · diff ↗
- 0.4.12023-02-12 · diff ↗
- 0.4.0
Package metadata
- First published
- 2021-08-20
- Total releases
- 17 / 5 yrs
- License
- GPL (>= 3) OSI · relicensed from MIT + file LICENSE in 0.7.0
- Minimum R
- ≥ 4.2
- Download size
- 149 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("sps")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.