stratsrs                 package:pps                 R Documentation

_S_t_r_a_t_i_f_i_e_d _s_i_m_p_l_e _r_a_n_d_o_m _s_a_m_p_l_i_n_g

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

     In each stratum, select a simple random sample

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

     stratsrs(stratum,nh)

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

 stratum: A vector of stratum codes, sorted by stratum

      nh: A vector containing the sample size in each stratum

_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:

     strat <- c(1,1,1,1,1,2,2,2,3,3,3,3,3,3,3)  # stratum 1 has 5 units, etc. 
     nh <- c(2,1,3)  # select 2 units from stratum 1, 1 from stratum 2 and 3 from 3
     stratsrs(strat,nh)

