binary.comparison: Binary comparison

Description Usage Arguments Value Author(s) See Also Examples

View source: R/binary.comparison.R

Description

Compares two binary vectors using the coefficient specified in method.

Usage

1
binary.comparison(x, y, method)

Arguments

x

a binary (0-1) vector

y

a binary (0-1) vector to compare with x

method

the comparison measure to use. Current options are "Phi", "Mathews", "Yule", "Jaccard", "Baroni", "kappa", "CCR", "TSS", "gain", "loss", and "balance".

Value

A numeric value indicating the cofficient of association specified in method.

Author(s)

A. Marcia Barbosa

See Also

binary.comp.methods

Examples

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")

AMBarbosa/DeadCanMove documentation built on Nov. 3, 2021, 10:03 a.m.