permuteinstrata {pps} | R Documentation |
Randomize the order of units within each stratum
permuteinstrata(stratsizes)
stratsizes |
A vector containing the size of each stratum |
Returns the vector of permuted indices. In the example below, the returned vector has 29 elements.
See the user's guide, pps.pdf, for more information.
stratsizes <- c(9,10,10) # strata have 9, 10 and 10 units, respectively permuteinstrata(stratsizes)