Sparse.alternating | R Documentation |
Implement an penalized least squares needed to run sparse canonical correlation analysis (SparseCCA) with various penalty functions. Modified Wilms, Ines, and Christophe Croux. "Robust sparse canonical correlation analysis." BMC systems biology 10.1 (2016): 1-13. The original code is accessible https://sites.google.com/view/iwilms/software?authuser=0
Sparse.alternating(Xreg, Yreg, method, groupidx = NULL)
Xreg |
: A data matrix of n rows |
Yreg |
: A vector of length n |
Xmethod |
: penalty function for the exposure, i.e. penalty function when regressing Yreg onto Xreg. Possible values are:
|
data.list <- generate.data(n=500) DATA.X <- data.list$DATA.X DATA.Y <- data.list$DATA.Y Sparse.alternating.result <- Sparse.alternating(Xreg=DATA.X,Yreg=DATA.Y[,1],method="SGL") str(Sparse.alternating.result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.