getCanCorMulti | R Documentation |
Calculate canonical correlation value for SmCCA given canonical weight vectors and scaling factor
getCanCorMulti(X, CCcoef, CCWeight, Y)
X |
A list of data each with same number of subjects. |
CCcoef |
A vector of scaling factors indicating weights for each pairwise canonical correlation. |
CCWeight |
A list of canonical weight vectors corresponds to each data in |
Y |
A phenotype matrix, should have only one column. |
A numeric value of the total canonical correlation
library(SmCCNet)
data("ExampleData")
getCanCorMulti(list(X1,X2), CCcoef = c(1,1,1),
CCWeight = list(rnorm(500,0,1), rnorm(100,0,1)), Y = Y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.