ppswr                  package:pps                  R Documentation

_P_P_S _s_a_m_p_l_i_n_g _w_i_t_h _r_e_p_l_a_c_e_m_e_n_t

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

     Use PPS sampling to select a sample of n units out of N with
     replacement

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

     ppswr(sizes,n)

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

   sizes: A vector of the sizes of the units in the population

       n: The sample size

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

     Returns the indices of the units that were selected in the sample

_N_o_t_e:

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

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

     sizes <- c(9,2,5,17,4,21,15,7,4,11,23,23,14)
     sampleindices <- ppswr(sizes,4)

