jaccard.test.asymptotic: Compute p-value using an asymptotic approximation

Description Usage Arguments Value Examples

View source: R/jaccard.test.asymptotic.R

Description

Compute statistical significance of Jaccard/Tanimoto similarity coefficients.

Usage

1
jaccard.test.asymptotic(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.asymptotic returns a list consisting of

statistics

centered Jaccard/Tanimoto similarity coefficient

pvalue

p-value

expectation

expectation

Examples

1
2
3
4
set.seed(1234)
x = rbinom(100,1,.5)
y = rbinom(100,1,.5)
jaccard.test.asymptotic(x,y)

Example output

$statistics
[1] -0.02460145

$pvalue
[1] 0.520712

$expectation
[1] 0.3179348

jaccard documentation built on May 2, 2019, 12:51 p.m.