Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

srswor1

Selection-rejection method


Description

Draws a simple random sampling without replacement of size n using the selection-rejection method.

Usage

srswor1(n,N)

Arguments

n

sample size.

N

population size.

Value

Returns a vector (with elements 0 and 1) of size N, the population size. Each element k of this vector indicates the status of unit k (1, unit k is selected in the sample; 0, otherwise).

References

Fan, C.T., Muller, M.E., Rezucha, I. (1962), Development of sampling plans by using sequential (item by item) selection techniques and digital computer, Journal of the American Statistical Association, 57, 387-402.

See Also

Examples

s=srswor1(3,10)
#the sample is
(1:10)[s==1]

sampling

Survey Sampling

v2.9
GPL (>= 2)
Authors
Yves Till<e9> <yves.tille@unine.ch>, Alina Matei <alina.matei@unine.ch>
Initial release
2021-01-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.