Description Usage Arguments Value Author(s) See Also Examples
View source: R/binary.comparison.R
Compares two binary vectors using the coefficient specified in method.
1  | binary.comparison(x, y, method)
 | 
x | 
 a binary (0-1) vector  | 
y | 
 a binary (0-1) vector to compare with   | 
method | 
 the comparison measure to use. Current options are "Phi", "Mathews", "Yule", "Jaccard", "Baroni", "kappa", "CCR", "TSS", "gain", "loss", and "balance".  | 
A numeric value indicating the cofficient of association specified in method.
A. Marcia Barbosa
1 2 3 4 5  | bin1 <- sample(c(0, 1), 100, replace = TRUE)
bin2 <- sample(c(0, 1), 100, replace = TRUE)
binary.comparison(bin1, bin2, method = "Phi")
binary.comparison(bin1, bin2, method = "kappa")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.