Calculates distances among rows of a binary data matrix or among the rows of two binary matrices. The end user will use BinaryProximities rather than this function. Input must be a matrix with 0 or 1 values.
BinaryDistances(x, y =NULL, coefficient="Simple_Matching", transformation="sqrt(1-S)")
Arguments
x: Main binary data matrix. Distances among rows are calculated if y=NULL.
y: Second binary data matrix. If not NULL the distances among the rows of x and y are calculated
coefficient: Similarity coefficient. Use the name (see details)
transformation: Transformation of the similarities. Use the name (see details)
Details
The following coefficients are calculated
1.- Kulezynski = a/(b + c)
2.- Russell_and_Rao = a/(a + b + c+d)
3.- Jaccard = a/(a + b + c)
4.- Simple_Matching = (a + d)/(a + b + c + d)
5.- Anderberg = a/(a + 2 * (b + c))
6.- Rogers_and_Tanimoto = (a + d)/(a + 2 * (b + c) + d)