efficient.rounding | R Documentation |

A vector of proportions is efficiently rounded to integers.

efficient.rounding(proportions,n,random=TRUE)

`proportions` |
A vector of proportions. |

`n` |
The sum of the resulting integers. |

`random` |
If TRUE, ties will be broken at random, otherwise the first of the tied values will be used. |

This function implements an efficient rounding procedure to round approximate theory designs into replicated integer approximations.

A vector of replications summing to n.

Bob Wheeler bwheelerg@gmail.com

Please cite this program as follows:

Wheeler, R.E. (2004). efficient.rounding. *AlgDesign*. The R project for statistical computing https://www.r-project.org/

Pulkesheim, F. and Rieder, S. (1992). Efficient rounding of approximate designs. Biometrika. 79-4. 763-770.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.