Learn R Programming

sampling (version 0.1)

srswor1: Selection-rejection method

Description

Draw 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.

Details

Return a vector (0 and 1) of size N which is the population size.

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

srswor

Examples

Run this code
srswor1(3,10)

Run the code above in your browser using DataLab