disjunctive             package:sampling             R Documentation

_D_i_s_j_u_n_c_t_i_v_e _c_o_m_b_i_n_a_t_i_o_n

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

     Transform a categorical variable into a matrix of indicators. The
     values of the categorical variable must be integer (positive or
     negative).

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

     disjunctive(strata)

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

  strata: vector of integer numbers.

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

     ' balancedstratification'

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

     # definition of the variable of stratification
     strata=c(-2,3,-2,3,4,4,4,-2,-2,3,4,0,0,0)
     # computation of the matrix
     disjunctive(strata)

