powered by
Use PPS systematic sampling to select a sample of n units out of N
ppss(sizes,n)
A vector of the sizes of the units in the population
The sample size
Returns the indices of the units that were selected in the sample
# NOT RUN { sizes <- c(9,2,5,17,4,21,15,7,4,11,23,23,14) sampleindices <- ppss(sizes,4) # }
Run the code above in your browser using DataLab