Learn R Programming

⚠️There's a newer version (0.3.0) of this package.Take me there.

prnsamplr

The goal of prnsamplr is to coordinate survey samples with the help of permanent random numbers.

Installation

You can install the released version of prnsamplr from CRAN with:

install.packages("prnsamplr")

Example

This is a basic example which shows you how to solve a common problem:

library(prnsamplr)

SampledData <- samp(method=pps, df=ExampleData, nsamp="nsample", stratid="stratum", prn="rands", size="sizeM")

News

In version 0.2.1 an error in the documentation was fixed, and some code in pps was edited to make the output more consistent. In version 0.2.0 a compatibility issue with the latest R was fixed. In version 0.1.1 an issue was fixed that disallowed generic function parameters.

Copy Link

Version

Install

install.packages('prnsamplr')

Monthly Downloads

769

Version

0.2.1

License

MIT + file LICENSE

Maintainer

Kira Gylling

Last Published

September 29th, 2022

Functions in prnsamplr (0.2.1)

transformprn

Permanent random number transformation
srs

Stratified simple random sampling
samp

Stratified permanent random number sampling
ExampleData

ExampleData
pps

Stratified probability-proportional-to-size sampling