permuteinstrata function

Randomize units within strata

Randomize units within strata

Randomize the order of units within each stratum

permuteinstrata(stratsizes)

Arguments

  • stratsizes: A vector containing the size of each stratum

Returns

Returns the vector of permuted indices. In the example below, the returned vector has 29 elements.

Note

See the user's guide, pps-ug.pdf, for more information.

Examples

stratsizes <- c(9,10,10) # strata have 9, 10 and 10 units, respectively permuteinstrata(stratsizes)
  • Maintainer: Jack G. Gambino
  • License: GPL (>= 2)
  • Last published: 2021-01-17

Useful links