compareClass             package:mclust             R Documentation

_C_o_m_p_a_r_e _c_l_a_s_s_i_f_i_c_a_t_i_o_n_s.

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

     Compare classifications via the normalized  variation of
     information criterion.

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

     compareClass(a, b)

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

       a: A numeric or character vector of class labels. 

       b: A numeric or character vector of class labels. Must have the
          same length as 'a'. 

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

     The variation of information criterion (Meila 2002) for 'a' and
     'b' divided by the log of the length of the sequences so that it
     falls in _[0,1]_.

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

     Marina Meila (2002). Comparing clusterings. Technical Report no.
     418, Department of Statistics, University of Washington.

     See <URL: http://www.stat.washington.edu/www/research/reports>.

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

     'mapClass', 'classError', 'table'

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

     a <- rep(1:3, 3)
     a
     b <- rep(c("A", "B", "C"), 3)
     b
     compareClass(a, b)
     a <- sample(1:3, 9, replace = TRUE)
     a
     b <- sample(c("A", "B", "C"), 9, replace = TRUE)
     b
     compareClass(a, b)

