Learn R Programming

ANTsR (version 0.7.2.0)

randcca: randomized cca function.

Description

uses random matrix to estimate cca results

Usage

randcca(x, y, k, seed)

Arguments

x

input matrix

y

input matrix

k

rank to use

seed

for testing

Value

outputs a list containing:

  • whitened: low-rank whitened joint matrix

  • svd: low-rank svd of joint matrix

Examples

Run this code
# NOT RUN {
set.seed(13)
x <- matrix(rnorm(3000), nrow=50 )
y <- x %*% matrix( rnorm( 60*100 ), nrow=60)
k=10
dr=randcca(x,y,k,1)

# }

Run the code above in your browser using DataLab