Learn R Programming

SunterSampling (version 1.0.1)

sunter: Sunter sampling

Description

The function uses the Sunter's method to select a sample of units (unequal probabilities, without replacement, fixed sample size).

Usage

sunter(x, n)

Arguments

x
the vector of values of the auxiliary variable (measure of size)
n
the sample size

Value

a vector of size $n$ that contains the selected units

References

C-E. Sarndal, B. Swensson, J. Wretman: Model Assisted Survey Sampling, Springer, New York, 1992

See Also

sunterpi, sunterpi2

Examples

Run this code
# from Sarndal et al. (1992)
x<-c(40,25,20,10,5)
n<-2
sunter(x,n)

Run the code above in your browser using DataLab