coef.hclust             package:cluster             R Documentation

_A_g_g_l_o_m_e_r_a_t_i_v_e _C_o_e_f_f_i_c_i_e_n_t _f_o_r '_h_c_l_u_s_t' _O_b_j_e_c_t_s

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

     Computes the "agglomerative coefficient", measuring the clustering
     structure of the dataset.

     For each observation i, denote by m(i) its dissimilarity to the
     first cluster it is merged with, divided by the dissimilarity of
     the merger in the final step of the algorithm.  The agglomerative
     coefficient is the average of all 1 - m(i).  It can also be seen
     as the average width (or the percentage filled) of the banner
     plot.

     Because it grows with the number of observations, this measure
     should not be used to compare datasets of very different sizes.

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

     coef.hclust(object, ...)
     ## S3 method for class 'hclust':
     coef(object, ...)
     ## S3 method for class 'twins':
     coef(object, ...)

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

  object: an object of class '"hclust"' or '"twins"', i.e., typically
          the result of 'hclust(.)','agnes(.)', or 'diana(.)'.

          Since 'coef.hclust' only uses 'object$heights', and
          'object$merge', 'object' can be any list-like object with
          appropriate 'merge' and 'heights' components. 

     ...: currently unused potential further arguments

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

     a number specifying the _agglomerative_ (or _divisive_ for 'diana'
     objects) coefficient as defined by Kaufman and Rousseeuw, see
     'agnes.object $ ac' or 'diana.object $ dc'.

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

     data(agriculture)
     aa <- agnes(agriculture)
     coef(aa) # really just extracts aa$ac
     coef(as.hclust(aa))# recomputes

