selectrs {SDaA} | R Documentation |
Steps used in selecting the simple random sample (SRS) in Example 2.4 of Lohr(1999).
selectrs
Data frame with the following 5 variables:
random number generated between 0 and 1
ceiling(3048*RN), with RN the random number
in column a
distinct values in column b
new values generated to replace duplicates in b
final set of distinct values to be used in sample
the set of indices in column e
was used to select
observations from agpop
into dataset agsrs
.
Lohr (1999). Sampling: Design and Analysis, Duxbury, p. 31–34 and 444.