CalculateCorrMatrix: Internal function of DoCorrelationPlotwithStarts.

Description Usage Arguments Examples

Description

It calculates the correlation matrix and pvalues and returns a list with components.

Usage

1
CalculateCorrMatrix(db, method, abs.cor = FALSE)

Arguments

db:

data base of continuos variables; columns are variables to be clustered.

method:

correlation method (spearman, perason etc, default to spearman)

abs.cor:

should the distance be 1-cor (FALSE,default) or 1-|cor| (TRUE). In teh later case, variables negative correlated will be as near as positive correlated

Examples

1
2
3
4
# in this examples, I want to cluster samples
a<-CalculateCorrMatrix(exprs(reset)[1:10,])
print(round(a$cor,2))
print(1*(a$p<=0.05))

mssm-msf-2019/BiostatsALL documentation built on May 22, 2019, 12:16 p.m.