Learn R Programming

relations (version 0.6-2)

dissimilarity: Dissimilarity Between Relations

Description

Compute the dissimilarity between (ensembles of) relations.

Usage

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

Arguments

x
an ensemble of relations (see relation_ensemble), or something which can be coerced to such.
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 availabl
...
further arguments to be passed to methods.

Value

  • 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.

Details

Available built-in methods are as follows.

[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object] Methods "symdiff", "manhattan", "euclidean" and "Jaccard" take an additional logical argument na.rm: if true (default: false), tuples with missing memberships are excluded in the dissimilarity computations.

References

W. D. Cook, M. Kress and L. M. Seiford (1986), Information and preference in partial orders: a bimatrix representation. Psychometrika 51/2, 197--207.

W. D. Cook and L. M. Seiford (1978), Priority ranking and consensus formation. Management Science, 24/16, 1721--1732.

P. Diaconis (1988), Group Representations in Probability and Statistics. Institute of Mathematical Statistics: Hayward, CA. J. G. Kemeny and J. L. Snell (1962), Mathematical Models in the Social Sciences, chapter Preference Rankings: An Axiomatic Approach. MIT Press: Cambridge.