Learn R Programming

StratifiedSampling (version 0.4.1)

sys_deville: Deville's systematic

Description

This function implements a method to select a sample using the Deville's systmatic algorithm.

Usage

sys_deville(pik)

Value

Return the selected indices in 1,2,...,N

Arguments

pik

A vector of inclusion probabilities.

References

Deville, J.-C. (1998), Une nouvelle méthode de tirage à probabilité inégales. Technical Report 9804, Ensai, France.

Chauvet, G. (2012), On a characterization of ordered pivotal sampling, Bernoulli, 18(4):1320-1340

Examples

Run this code
set.seed(1)
pik <- c(0.2,0.5,0.3,0.4,0.9,0.8,0.5,0.4)
sys_deville(pik)

Run the code above in your browser using DataLab