efficient.rounding         package:AlgDesign         R Documentation

_E_f_f_i_c_i_e_n_t _R_o_u_n_d_i_n_g

_D_e_s_c_r_i_p_t_i_o_n:

     A vector of proportions is efficiently rounded to integers.

_U_s_a_g_e:

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

_A_r_g_u_m_e_n_t_s:

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.

_D_e_t_a_i_l_s:

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

_V_a_l_u_e:

     A vector of replications summing to n.

_A_u_t_h_o_r(_s):

     Bob Wheeler bwheeler@echip.com

     Please cite this program as follows:

     Wheeler, R.E. (2004). efficient.rounding. _AlgDesign_. The R
     project for statistical computing <URL: http://www.r-project.org/>

_R_e_f_e_r_e_n_c_e_s:

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

