Compute the inclusion probabilities to be used in a PIps design with sample size equal to n
.
pinc(n, x)
A numeric vector giving the inclusion probability of each element.
a positive integer indicating the desired sample size.
a positive numeric vector giving the values of the auxiliary variable.
The inclusion probabilities are calculated as
x<- 1 + sort( rgamma(100, shape=4/9, scale=108) )
pinc(n=30,x)
Run the code above in your browser using DataLab