pinc | R Documentation |
Compute the inclusion probabilities to be used in a PIps design with sample size equal to n
.
pinc(n, x)
n |
a positive integer indicating the desired sample size. |
x |
a positive numeric vector giving the values of the auxiliary variable. |
The inclusion probabilities are calculated as n\times x_{k}/t_{x}
and corrected, if necessary, to ensure that they are smaller or equal than one.
A numeric vector giving the inclusion probability of each element.
x<- 1 + sort( rgamma(100, shape=4/9, scale=108) )
pinc(n=30,x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.