Computes a simple matching dissimilarity coefficient
binaryDiss(dat.frame)
A data frame containing only the 0/1 columns.
Returns a binary dissimilarity matrix.
Helsel, D.R., 2011. Statistics for Censored Environmental Data using Minitab and R, 2nd ed. John Wiley & Sons, USA, N.J.
data(PbHeron)
binaryDiss(PbHeron$LiverCen)
#> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#> 2 0
#> 3 1 1
#> 4 0 0 1
#> 5 1 1 0 1
#> 6 0 0 1 0 1
#> 7 0 0 1 0 1 0
#> 8 0 0 1 0 1 0 0
#> 9 0 0 1 0 1 0 0 0
#> 10 0 0 1 0 1 0 0 0 0
#> 11 0 0 1 0 1 0 0 0 0 0
#> 12 0 0 1 0 1 0 0 0 0 0 0
#> 13 1 1 0 1 0 1 1 1 1 1 1 1
#> 14 1 1 0 1 0 1 1 1 1 1 1 1 0
#> 15 0 0 1 0 1 0 0 0 0 0 0 0 1 1
#> 16 0 0 1 0 1 0 0 0 0 0 0 0 1 1 0
#> 17 0 0 1 0 1 0 0 0 0 0 0 0 1 1 0 0
#> 18 0 0 1 0 1 0 0 0 0 0 0 0 1 1 0 0 0
#> 19 0 0 1 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0
#> 20 0 0 1 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0
#> 21 0 0 1 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0
#> 22 0 0 1 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0
#> 23 0 0 1 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0
#> 24 0 0 1 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0
#> 25 0 0 1 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0
#> 26 0 0 1 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0
#> 27 0 0 1 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0