landingcube             package:sampling             R Documentation

_L_a_n_d_i_n_g _p_h_a_s_e _f_o_r _t_h_e _c_u_b_e _m_e_t_h_o_d

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

     Landing phase of the cube method by means of a linear programming.

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

     landingcube(X,pikstar,pik,comment=TRUE)

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

       X: matrix of auxiliary variables on which the sample must be
          balanced.

 pikstar: vector obtained at the end of the flight phase.

     pik: vector of inclusion probabilities.

 comment: a comment is written during the execution if 'comment' is
          equal to 'TRUE'.

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

     Till, Y. (2006), _Sampling Algorithms_, Springer.
      Chauvet, G. and Till, Y. (2006). A fast algorithm of balanced
     sampling. _to appear in Computational Statistics_. 
      Chauvet, G. and Till, Y. (2005). New SAS macros for balanced
     sampling. In INSEE, editor, _Journes de Mthodologie
     Statistique_, Paris.
      Deville, J.-C. and Till, Y. (2004). Efficient balanced sampling:
     the cube method. _Biometrika_, 91, 893-912.
      Deville, J.-C. and Till, Y. (2005). Variance approximation under
     balanced sampling. _Journal of Statistical Planning and
     Inference_, 128/2:411-425.

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

     'samplecube', 'fastflightcube'

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

     # matrix of balancing variables
     X=cbind(c(1,1,1,1,1,1,1,1,1),c(1.1,2.2,3.1,4.2,5.1,6.3,7.1,8.1,9.1))
     # Vector of inclusion probabilities
     # The sample has the size equal to 3.
     pik=c(1/3,1/3,1/3,1/3,1/3,1/3,1/3,1/3,1/3)
     # pikstar is almost a balanced sample and is ready for the landing phase
     pikstar=fastflightcube(X,pik,order=1,comment=TRUE)
     # selection of the sample s
     s=landingcube(X,pikstar,pik,comment=TRUE)
     round(s)

