A vector of proportions is efficiently rounded to integers.
efficient.rounding(proportions,n,random=TRUE)
A vector of proportions.
The sum of the resulting integers.
If TRUE, ties will be broken at random, otherwise the first of the tied values will be used.
A vector of replications summing to n.
This function implements an efficient rounding procedure to round approximate theory designs into replicated integer approximations.
Pulkesheim, F. and Rieder, S. (1992). Efficient rounding of approximate designs. Biometrika. 79-4. 763-770.