Learn R Programming

SDaA (version 0.1-5)

selectrs: Steps used in Selecting an SRS

Description

Steps used in selecting the simple random sample (SRS) in Example 2.4 of Lohr(1999).

Usage

selectrs

Arguments

Format

Data frame with the following 5 variables:

a

random number generated between 0 and 1

b

ceiling(3048*RN), with RN the random number in column a

c

distinct values in column b

d

new values generated to replace duplicates in b

e

final set of distinct values to be used in sample

References

Lohr (1999). Sampling: Design and Analysis, Duxbury, p. 31--34 and 444.