Learn R Programming

jaccard (version 0.1.2)

jaccard.ev: Compute an expected Jaccard/Tanimoto similarity coefficient under independence

Description

Compute an expected Jaccard/Tanimoto similarity coefficient under independence

Usage

jaccard.ev(x, y, px = NULL, py = NULL)

Value

jaccard.test.bootstrap returns an expected value.

Arguments

x

a binary vector (e.g., fingerprint)

y

a binary vector (e.g., fingerprint)

px

probability of successes in x (optional)

py

probability of successes in y (optional)

Examples

Run this code
set.seed(1234)
x = rbinom(100,1,.5)
y = rbinom(100,1,.5)
jaccard.ev(x,y)

Run the code above in your browser using DataLab