sps
Sequential Poisson Sampling
sps keeps sanding down sequential Poisson sampling rather than adding to it.
◆Recent moves
- 29d ago
Documentation polish; switches to tinytest and litedown
Documentation improvements and a switch to tinytest and litedown for testing and rendering. Maintenance infrastructure with no effect on sampling behaviour.
View source ↗ - 9mo ago
Fixes extra argument handling in sps_iterator()
A one-line fix so extra arguments pass through the sampling iterator correctly. Cleanup on the iterator introduced two releases earlier.
View source ↗ - 11mo ago
Adds divisor_method() and a one-unit-at-a-time sampling iterator
Adds a helper for generating divisor functions by name and an iterator that draws a sample one unit at a time, alongside a faster allocation routine. The iterator is the most substantive addition in the window, since it allows sampling to be driven incrementally rather than in one call.
View source ↗ - 1y ago
Adds an inclusion-probability vignette and faster partial sorting
A vignette explaining how inclusion probabilities are calculated, plus partial sorting through kit::topn() when available. Documentation and a contained optimisation.
View source ↗ - 1y ago
Automatic tau selection for replicate weights
Replicate weight generation now picks the smallest parameter that avoids negative weights by default, removing a manual tuning step. Single-stratum inclusion probability calculation is also faster, which benefits the main sampling entry points.
View source ↗ - 2y ago
Adds becomes_ta() for take-all stratum sample sizes
Adds a function to determine the sample size at which a unit enters the take-all stratum, filling a gap in the allocation workflow. Remaining changes are internal class instantiation with no user-visible effect.
View source ↗