getDirection: get direction for dCor

Description Usage Arguments Details Value Examples

Description

Uses a t-test to infer the direction of the distance correlation.

Usage

1

Arguments

...

arguments passed to t.test()

Details

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.

Value

1 (second group > first group), 0 (not significant), or -1 (second group < first group)

Examples

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

tallulandrews/scTarNet documentation built on May 31, 2019, 2:27 p.m.