powered by
Calculate canonical correlation value for SmCCA given canonical weight vectors and scaling factor
getCanCorMulti(X, CCcoef, CCWeight, Y)
A numeric value of the total canonical correlation
A list of data each with same number of subjects.
A vector of scaling factors indicating weights for each pairwise canonical correlation.
A list of canonical weight vectors corresponds to each data in \(X\).
A phenotype matrix, should have only one column.
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)
Run the code above in your browser using DataLab