Learn R Programming

SmCCNet (version 2.0.3)

getCanCorMulti: Canonical Correlation Value for SmCCA

Description

Calculate canonical correlation value for SmCCA given canonical weight vectors and scaling factor

Usage

getCanCorMulti(X, CCcoef, CCWeight, Y)

Value

A numeric value of the total canonical correlation

Arguments

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 \(X\).

Y

A phenotype matrix, should have only one column.

Examples

Run this code
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