cleanstrata             package:sampling             R Documentation

_C_l_e_a_n _s_t_r_a_t_a

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

     Renumber a variable of stratification (qualitative variable). The
     strata receive a number from 1 to the last stratum number.  The
     empty strata are suppressed. This function is used in
     'balancedstratification'.

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

     cleanstrata(strata)

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

  strata: vector of stratum numbers.

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

     'balancedstratification'

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

     # definition of the stratification variable
     strata=c(-2,3,-2,3,4,4,4,-2,-2,3,4,0,0,0)
     # renumber the strata
     cleanstrata(strata)

