transformprn: Permanent random number transformation

Description Usage Arguments Value References See Also Examples

Description

Transformation of the permanent random numbers used in the sampling procedure, to control the overlap between samples, and thus control the sample coordination. The method used is specified in Lindblom and Teterukovsky (2007).

Usage

1
transformprn(df, prn, direction, start)

Arguments

df

Data frame containing the elements to sample from.

prn

Variable in df containing the permanent random numbers.

direction

"U" or "R" for upwards, or to the right on the real-number line. "D" or "L" for downwards, or to the left on the real-number line.

start

Starting point for the transformation.

Value

Copy of the input data frame together with the numeric variable prn.old containing the non-transformed permanent random numbers, as well as the numeric variable prn containing the transformed permanent random numbers.

References

Lindblom, A. and Teterukovsky, A. (2007) Coordination of Stratified Pareto pps Samples and Stratified Simple Random Samples at Statistics Sweden.

See Also

samp, srs, pps.

Examples

1
transformprn(df=ExampleData, prn="prn", direction="U", start=0.2)

kirajcg/prnsamplr documentation built on May 17, 2019, 3:12 a.m.