koplsDummy               package:kopls               R Documentation

_C_o_n_v_e_r_t_i_o_n _o_f _i_n_t_e_g_e_r _v_e_c_t_o_r _t_o _d_u_m_m_y _m_a_t_r_i_x

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

     Converts integer vector to binary class matrix ('dummy' matrix).

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

     koplsDummy(class)

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

   class: Integer vector containing values denoting class belonging.

numClasses: Number of classes. If NA, the number of unique entries in
          'class' will be used instead.

_V_a_l_u_e:

     A matrix with rows corresponding to observations and columns to
     classes. Each element in matrix is either one (observation belongs
     to class) or zero (observation does not belong to class).

_A_u_t_h_o_r(_s):

     Max Bylesjo and Mattias Rantalainen

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

     Rantalainen M, Bylesjo M, Cloarec O, Nicholson JK, Holmes E and
     Trygg J. *Kernel-based orthogonal projections to latent structures
     (K-OPLS)*, _J Chemometrics_ 2007; 21:376-385.
     doi:10.1002/cem.1071.

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

