Skip to content

prnsamplr

Permanent Random Number Sampling

v1.1.0 · Apr 17, 2025 · MIT + file LICENSE

Description

Survey sampling using permanent random numbers (PRN's). A solution to the problem of unknown overlap between survey samples, which leads to a low precision in estimates when the survey is repeated or combined with other surveys. The PRN solution is to supply the U(0, 1) random numbers to the sampling procedure, instead of having the sampling procedure generate them. In Lindblom (2014) <doi:10.2478/jos-2014-0047>, and therein cited papers, it is shown how this is carried out and how it improves the estimates. This package supports two common fixed-size sampling procedures (simple random sampling and probability-proportional-to-size sampling) and includes a function for transforming the PRN's in order to control the sample overlap.

Downloads

735

Last 30 days

4938th

2.2K

Last 90 days

8.1K

Last year

Trend: -3% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies rlang prnsamplr

Version History

new 1.1.0 Mar 10, 2026
updated 1.1.0 ← 1.0.0 diff Apr 16, 2025
updated 1.0.0 ← 0.3.0 diff Nov 19, 2024
updated 0.3.0 ← 0.2.1 diff Mar 7, 2023
updated 0.2.1 ← 0.2.0 diff Sep 28, 2022
updated 0.2.0 ← 0.1.1 diff Jan 10, 2021
updated 0.1.1 ← 0.1.0 diff Feb 8, 2020
new 0.1.0 Mar 1, 2019