dissimilarity           package:relations           R Documentation

_D_i_s_s_i_m_i_l_a_r_i_t_y _B_e_t_w_e_e_n _R_e_l_a_t_i_o_n_s

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

     Compute the dissimilarity between (ensembles of) relations.

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

     relation_dissimilarity(x, y = NULL, method = "symdiff", ...)

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

       x: an ensemble of relations, or something which can be coerced
          to such (see 'relation_ensemble').

       y: 'NULL' (default), or as for 'x'.

  method: a character string specifying one of the built-in methods for
          computing dissimilarity, or a function to be taken as a
          user-defined method.  If a character string, its lower-cased
          version is matched against the lower-cased names of the
          available built-in methods using 'pmatch'.  See *Details* for
          available built-in methods.

     ...: further arguments to be passed to methods.

_D_e_t_a_i_l_s:

     Currently, '"symdiff"' is the only built-in method available. This
     computes the cardinality of the symmetric difference of two
     relations, i.e., the number of tuples contained in exactly one of
     two relations.  For complete endorelations, this coincides with
     the _Kemeny-Snell_ metric.

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

     If 'y' is 'NULL', an object of class 'dist' containing the
     dissimilarities between all pairs of elements of 'x'.  Otherwise,
     a matrix with the dissimilarities between the elements of 'x' and
     the elements of 'y'.

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

     J. G. Kemeny and J. L. Snell (1962), _Mathematical Models in the
     Social Sciences_, chapter "Preference Rankings: An Axiomatic
     Approach". MIT Press: Cambridge.

