jaccard.test.exact {jaccard}R Documentation

Compute p-value using the exact solution

Description

Compute statistical significance of Jaccard/Tanimoto similarity coefficients.

Usage

jaccard.test.exact(x, y, px = NULL, py = NULL, verbose = TRUE)

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)

verbose

whether to print progress messages

Value

jaccard.test.exact returns a list consisting of

statistics

centered Jaccard/Tanimoto similarity coefficient

pvalue

p-value

expectation

expectation

Examples

set.seed(1234)
x = rbinom(100,1,.5)
y = rbinom(100,1,.5)
jaccard.test.exact(x,y)

[Package jaccard version 0.1.0 Index]