UPtillepi2             package:sampling             R Documentation

_J_o_i_n_t _i_n_c_l_u_s_i_o_n _p_r_o_b_a_b_i_l_t_i_e_s _f_o_r _T_i_l_l _s_a_m_p_l_i_n_g

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

     Compute the joint inclusion probabilities for Till sampling.

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

     UPtillepi2(pik,eps=1e-6)

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

     pik: vector of first order inclusion probabilities.

     eps: the control value, by default equal to 1e-6.

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

     Return a NxN matrix  with the first order inclusion probability
     for each unit k in the population on the first diagonal and with
     the joint inclusion probability of units k and l in position (k,l)
     in the matrix, where $k\neq l$ (N is the population size). The
     value eps is used to control pik (pik>eps & pik < 1-eps).

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

     Till, Y. (1996), An elimination procedure of unequal probability
     sampling without replacement, _Biometrika_, 83:238-241.

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

     'UPtille'

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

     #define the prescribed inclusion probabilities
     pik=c(0.2,0.7,0.8,0.5,0.4,0.4)
     s=UPtillepi2(pik)
     #the sample is
     (1:length(pik))[s==1]

