Description Usage Arguments Value
This is a fast implementation of sparse canonical correlation analysis.
1 2 |
X |
a matrix of dimension n x p |
Y |
a matrix of dimension n x q |
penalty_x |
a string indicating the penalty function to use on matrix X. Currently only "lasso" is implemented. |
penalty_y |
a string indicating the penalty function to use on matrix Y. Currently only "lasso" is implemented. |
lam_x |
a numeric vector of tuning parameters on X |
lam_y |
a numeric vector of tuning parameters on Y |
k_folds |
an integer denoting the number of folds to use in cros-validation |
n_components |
the number of components to compute |
center |
center the columns to mean zero? |
scale |
scale the columns to standard deviation one? |
A list with matrices:
A matrix of dimension p x n_components of the canonical vector
A matrix of dimension q x n_components of the canonical vector
A matrix of dimension n x n_components of the X * a
A matrix of dimension n x n_components of the Y * b
A matrix of dimension n_components x n of the optimal tuning parameters
The average cross-validated covariance
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.