powered by
Compute statistical significance of Jaccard/Tanimoto similarity coefficients.
jaccard.test.bootstrap( x, y, px = NULL, py = NULL, verbose = TRUE, fix = "x", B = 1000, seed = NULL )
jaccard.test.bootstrap returns a list consisting of
jaccard.test.bootstrap
centered Jaccard/Tanimoto similarity coefficient
p-value
expectation
a binary vector (e.g., fingerprint)
probability of successes in x (optional)
x
probability of successes in y (optional)
y
whether to print progress messages
whether to fix (i.e., not resample) x and/or y
a total bootstrap iteration
a seed for a random number generator
set.seed(1234) x = rbinom(100,1,.5) y = rbinom(100,1,.5) jaccard.test.bootstrap(x,y,B=500)
Run the code above in your browser using DataLab