Skip to content

prnsamplr

1.1.0Package record

Permanent Random Number Sampling

0packages depend
7.1Kdownloads / year
94.8%test coverage
13/13flavors OK

Overview

About

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.

Install

Health

CRAN checks
13OK
Slowest check: 1.6 min · r-oldrel-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.1.0
READMEYes · 162 wordsVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
Help pages
6includes a package overview page
Examples that run
100%5 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
33%

Downloads

7.1K
CRAN downloads in the past year
Rank #7,763 · ~19/day · ~588/mo
Daily download trend is not available in this view yet.
43630 days
1.2K90 days
7.1K1 year
Compare downloads with other packages →
Also on92 r2u7 autocran

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing prnsamplr adds 1 package (1 with compiled code, 766 KB of source tarballs). Heaviest: rlang 766 KB.

Depends (1)
R >= 4.2
Imports (2)
rlangstats
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.1.0 (2019)
Releases (7)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.1.0Latest
    record
    2025-04-17 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.0
    record
    2024-11-20 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.3.0
    record
    2023-03-08 · diff ↗
  • 0.2.1
    record
    2022-09-29 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.2.0
    record
    2021-01-11 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.1.1
    record
    2020-02-09 · diff ↗ ·
    removed 1 export
    pattern:^[[:alpha:]]+
    added 4 exports
    pps, samp, srs, transformprn
  • R
    R 3.6.0 released · 2019-04-26
  • 0.1.0
    record
    2019-03-02
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2019-03-02
Total releases
7 / 7 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.2
Bundled data
412 KB / 1 file
Download size
514 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("prnsamplr")
Coder Gylling, K. (2025). prnsamplr: Permanent Random Number Sampling (Version 1.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.prnsamplr

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 prnsamplr version 1.1.0 [Data set]. HJJB, LLC. Data release v2026-10-26. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-26, 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