srswr                package:sampling                R Documentation

_S_i_m_p_l_e _r_a_n_d_o_m _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:

     Draw a simple random sampling with replacement of size n (equal
     probabilities, fixed sample size, with replacement).

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

     srswr(n,N)

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

       n: sample size.

       N: population size.

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

     Return a vector of size N which is the population size. Each
     element k of this vector indicates  the number of replicates for
     unit k in the sample.

_S_e_e _A_l_s_o:

     'rmultinom', 'UPmultinomial'

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

     s=srswr(3,10)
     #the selected units are 
     (1:10)[s!=0]
     #wiht the number of replicates 
     s[s!=0]

