onegcc: compute one Gini correlation coefficient

Description Usage Arguments Details Value Author(s) Examples

View source: R/rsgcc.R

Description

onegcc calcluates one Gini correlation coefficient with rank information of the first variable.

Usage

1
	onegcc(x, y)

Arguments

x

a numeric vector.

y

a numeric vector with the same length of x.

Details

This is a generic function cacluating correlation with rank information of the first variable and the actual value information of the second variable.

Value

Gini correlation coefficient (a numeric value ranged from -1.0 to 1.0).

Author(s)

Chuang Ma, Xiangfeng Wang

Examples

1
2
3
4
   data(rsgcc)
   x <- rnaseq[1:10,]     #Just use a small subset of RNA-Seq data 
   onegcc(x[1,], x[2,])   # generate one correlaiton for one gene pair
   onegcc(x[2,], x[1,])   # generate the other correlaiton for the same gene pair

rsgcc documentation built on May 2, 2019, 9:25 a.m.