randcca: randomized cca function.

View source: R/randsccan.R

randccaR Documentation

randomized cca function.

Description

uses random matrix to estimate cca results

Usage

randcca(x, y, k, seed = NA)

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

Author(s)

Avants BB

Examples

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)


stnava/ANTsR documentation built on April 16, 2024, 12:17 a.m.