Description Usage Arguments Details Value Examples
Uses a t-test to infer the direction of the distance correlation.
1 |
... |
arguments passed to t.test() |
Silently performs a t-test. Returns the sign of the test statistic if the result is significant at p-value < 0.05). If not significant or any error occurs returns a zero.
1 (second group > first group), 0 (not significant), or -1 (second group < first group)
1 2 3 4 5 | a <- rnorm(50)
b <- rnorm(50, mean=10)
dir <- getDirection(a, b) # 1
dir <- getDirection(b, a) # -1
dir <- getDirection(a, a) # 0
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.