permuteinstrata             package:pps             R Documentation

_R_a_n_d_o_m_i_z_e _u_n_i_t_s _w_i_t_h_i_n _s_t_r_a_t_a

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

     Randomize the order of units within each stratum

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

     permuteinstrata(stratsizes)

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

stratsizes: A vector containing the size of each stratum

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

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

_N_o_t_e:

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

_E_x_a_m_p_l_e_s:

     stratsizes <- c(9,10,10)  # strata have 9, 10 and 10 units, respectively
     permuteinstrata(stratsizes)

