| core_oblique_sparse_PCA {ENCA} | R Documentation |
Core function of oblique sparse PCA.
core_oblique_sparse_PCA(X, Q, LASSO, MAXITER, INIT, eps, PRINT)
X |
An I by J gene expression data matrix. |
Q |
The number of transcription factors. |
LASSO |
Value for the tuning parameter of the lasso penalty (this should be a scalar, not a vector). |
MAXITER |
The maximum number of iterations. |
INIT |
Initial value for the connection strength matrix. To include (some) prior information: all connection strengths equal to zero will remain zero. If INIT = matrix(numeric(0), 0, 0), a random initial matrix will be generated. |
eps |
Convergence criterium |
PRINT |
Print out progress? |
A |
The I by Q estimated oblique sparse connection strength matrix. |
P |
The J by Q estimated oblique activity matrix. |
Loss |
The obtained loss-value. |
See also Van Deun et al. (In press) for more information about methods to obtain sparse component solutions.
Katrijn Van Deun and Martijn Schouteden
Quantitative Psychology and Individual Differences
Katholieke Universiteit Leuven
martijn.schouteden@psy.kuleuven.be
Van Deun, K, Wilderjans,TF, van den Berg, RA, Antoniadis, A and Van Mechelen, I (In press). A flexible framework for sparse simultaneous component based data integration, BMC Bioinformatics.
#Load data and set input parameters data(DataSpellman) X=DataSpellman Q=5 LASSO=2.5 MAXITER=50 INIT = matrix(numeric(0),0,0) eps = 1e-4 PRINT=TRUE #run core_oblique_sparse_PCA tmp=core_oblique_sparse_PCA(X,Q,LASSO,MAXITER,INIT,eps,PRINT) A=tmp[[1]] P=tmp[[2]]