ztoc                 package:mclust                 R Documentation

_C_o_n_v_e_r_s_i_o_n _b_e_t_w_e_e_n _c_o_n_d_i_t_i_o_n_a_l _p_r_o_b_a_b_i_l_i_t_i_e_s _a_n_d _a _c_l_a_s_s_i_f_i_c_a_t_i_o_n

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

     The function ctoz converts a discrete classification into the
     corresponding z matrix. ztoc converts a z matrix to the nearest
     classification.

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

     ztoc(z)
     ctoz(c, noise)

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

       z: Matrix with conditional probabilities; each object one row,
          and each cluster one column.

       c: Classification vector.

   noise: Noise indicator vector.

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

     data(iris)
     cltree _ mhtree(iris[,1:4], modelid="VVV")
     cl _ mhclass(cltree, 3)
     origz _ ctoz(cl)
     z _ me(iris[,1:4], modelid="VVV", origz)
     newcl _ ztoc(z)

