spearman.rstat: Function to Calculate Spearman Correlation Statistics

Description Usage Arguments Value Author(s) References See Also Examples

Description

A function to calculate Spearman rank correlation of each gene in an array data with a continuous variable

Usage

1
spearman.rstat(Y, x, strat = NULL)

Arguments

Y

a numeric data frame. Each row gives values of one genomic variable.

x

a vector of continuous variable.

strat

a vector of stratum to calculate stratified correlation statistics, default = NULL.

Value

Return a vector of Spearman rank correlation statistics.

Author(s)

Stan Pounds stanley.pounds@stjude.org; Xueyuan Cao xueyuan.cao@stjude.org

References

Spearman C. (1904) The proof and measurement of association between two things. Amer. J. Psychol. 15: 72-101

See Also

PROMISE

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## load sampExprSet.
data(sampExprSet)

## extract expression matrix from sampExprSet
Y <- exprs(sampExprSet)

## extract end point data from sampExprSet
x <- pData(phenoData(sampExprSet))$drugLevel
strat <- pData(phenoData(sampExprSet))$strat

## Calculte Spearman correlation statistics
test <- spearman.rstat(Y, x, strat = strat)

PROMISE documentation built on Nov. 8, 2020, 5:15 p.m.