lol.project.lrcca {lolR} | R Documentation |
Low-rank Canonical Correlation Analysis (LR-CCA)
Description
A function for implementing the Low-rank Canonical Correlation Analysis (LR-CCA) Algorithm.
Usage
lol.project.lrcca(X, Y, r, ...)
Arguments
X |
[n, d] the data with |
Y |
[n] the labels of the samples with |
r |
the rank of the projection. |
... |
trailing args. |
Value
A list containing the following:
A |
|
d |
the eigen values associated with the eigendecomposition. |
ylabs |
|
centroids |
|
priors |
|
Xr |
|
cr |
|
Details
For more details see the help vignette:
vignette("lrcca", package = "lolR")
Author(s)
Eric Bridgeford and Minh Tang
Examples
library(lolR)
data <- lol.sims.rtrunk(n=200, d=30) # 200 examples of 30 dimensions
X <- data$X; Y <- data$Y
model <- lol.project.lrcca(X=X, Y=Y, r=5) # use lrcca to project into 5 dimensions