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

UPopips

Order pips sampling


Description

Implements order π ps sampling (unequal probabilities, without replacement, fixed sample size).

Usage

UPopips(lambda,type=c("pareto","uniform","exponential"))

Arguments

lambda

vector of working inclusion probabilities or target ones.

type

the type of order sampling (pareto, uniform, exponential).

Value

Returns a vector of selected units of size n, the sample size.

References

Rosén, B. (1997), Asymptotic theory for order sampling, Journal of Statistical Planning and Inference, 62:135-158.
Rosén, B. (1997), On sampling with probability proportional to size, Journal of Statistical Planning and Inference, 62:159-191.

See Also

Examples

#define the working inclusion probabilities
lambda=c(0.2,0.7,0.8,0.5,0.4,0.4)
#draw a Pareto sample
s=UPopips(lambda, type="pareto")
#the sample is
s

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.