Description Usage Arguments Examples
It calculates the correlation matrix and pvalues and returns a list with components.
1 | CalculateCorrMatrix(db, method, abs.cor = FALSE)
|
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 |
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.