srswor1               package:sampling               R Documentation

_S_e_l_e_c_t_i_o_n-_r_e_j_e_c_t_i_o_n _m_e_t_h_o_d

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

     Draw a simple random sampling without replacement of size n, using
     the selection-rejection method.

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

     srswor1(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 (with elements 0 and 1) of size N, where N is the
     population size.   Each element k of this vector indicates the
     status of the unit k  (1, the unit k is selected in the sample; 0,
     otherwise).

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

     Fan, C.T., Muller, M.E., Rezucha, I. (1962), Development of
     sampling plans by using sequential (item by item) selection
     techniques and digital computer, _Journal of the American
     Statistical Association_, 57, 387-402.

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

     'srswor'

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

     s=srswor1(3,10)
     #the sample is
     (1:10)[s==1]

