Description Usage Arguments Value Author(s) References Examples
View source: R/SystematicDesign.R
Find the systematic sampling design of an inclusion probabilities vector. It gives all possible samples and their selection probabilities using the systematic sampling.
1 | SystematicDesign(pik, EPS = 1e-06)
|
pik |
a vector of inclusion probabilities. |
EPS |
a tolerance parameter. Default value is 1e-6. |
Returns a list including:
samples
a matrix that contains the systematic samples in rows.
The samples have the same length as vector pik
and contains 0s and 1s that specify whether a unit is selected or not in the sample.
probas
a vector that contains the selection probabilities of samples in samples
.
Esther Eustache esther.eustache@unine.ch
Quenouille, M. H. (1949). Approximate Tests of Correlation in time-Series. Royal Statistical Society, Series B Vol. 11, No. 1 (1949), pp. 68-84.
Tille, Y. (2020). Sampling and Estimation from Finite Populations. John Wiley & Sons, 91(4), page 89.
1 2 3 4 | ## Vector of inclusion probabilities ##
pik <- c(0.2,0.3,0.6)
## Find the systematic sampling design of pik ##
SystematicDesign(pik)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.