Skip to content

prnsamplr

1.1.0

Permanent Random Number Sampling

0packages depend
8Kdownloads / year
94.8%test coverage
13/13checks pass

Overview

About
Maintained by Kira Coder GyllingFirst published 2019-03-027 releasesCRAN page ↗

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.5 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.53
94.8%
Coverage · measured lines
100%
Documentation · exports
2
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 162 wordsVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
33%

Downloads

8K
CRAN downloads in the past year
Rank #5,162 · ~22/day · ~664/mo
Daily download trend is not available in this view yet.
39730 days
1.8K90 days
8K1 year
Compare downloads with other packages →
Also on100 r2u31 autocran

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.2
Imports (2)
rlangstats
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 781 (73%)Rd 294 (27%)
Code characteristics
Object systems
S39
Cyclomatic complexity
1.0 median / 17 max
Test cases
37 / 0.53 per code line

Test coverage

Line coverage

95%

Expression

93.2%

Tests / Examples

94.8% / 64% ex

Functions

13 4 exported

Complexity

3.6 avg / 17 max

Call network

13 nodes / 1 edges

Loading call graph…

Lowest coverage

13 functions
FunctionCycloCoverage
srs.data.frame1293%
transformprn.data.frame795%
pps.data.frame1795%
pps exp1100%
samp exp2100%
srs exp1100%

Datasets

Bundled datasets · 1
NameClassRows × ColsAlso ships in
ExampleDatadata.frame40,000 × 6

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

7 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.1.0Latest
    2025-04-17 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.0
    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
    2023-03-08 · diff ↗
  • 0.2.1
    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
    2021-01-11 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.1.1
    2020-02-09 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.1.0
    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
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →