Description Usage Arguments Value Examples
View source: R/jaccard.test.mca.R
Compute statistical significance of Jaccard/Tanimoto similarity coefficients.
1 2 | jaccard.test.mca(x, y, px = NULL, py = NULL, accuracy = 1e-05,
error.type = "average", verbose = TRUE)
|
x |
a binary vector (e.g., fingerprint) |
y |
a binary vector (e.g., fingerprint) |
px |
probability of successes in |
py |
probability of successes in |
accuracy |
an error bound on approximating a multinomial distribution |
error.type |
an error type on approximating a multinomial distribution ("average", "upper", "lower") |
verbose |
whether to print progress messages |
jaccard.test.mca
returns a list consisting of
statistics |
centered Jaccard/Tanimoto similarity coefficient |
pvalue |
p-value |
expectation |
expectation |
1 2 3 4 | set.seed(1234)
x = rbinom(100,1,.5)
y = rbinom(100,1,.5)
jaccard.test.mca(x,y,accuracy = 1e-05)
|
$statistics
[1] -0.02460145
$pvalue
[1] 0.58527
$expectation
[1] 0.3179348
$accuracy
[1] 9.995723e-06
$error.type
[1] "average"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.