| oblique_sparse_PCA {ENCA} | R Documentation |
Function to do oblique sparse PCA (OSPCA). Sparsity is obtained by means of the lasso penalty.
oblique_sparse_PCA(X, Q, LASSO, MAXITER = 250, NRSTARTS = 10, INIT = matrix(numeric(0), 0, 0), eps = 1e-07, PRINT = TRUE)
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 |
Maximum number of iterations. |
NRSTARTS |
Number of random starts. |
INIT |
Initial value for the connection strength matrix (with all connection strengths equal to zero will remain zero). If INIT = matrix(numeric(0), 0, 0), a random matrix will be generated (default). |
eps |
Convergence criterium (default 1e-7). |
PRINT |
Print out progress? |
A multistart procedure is used to deal with the local minimum problem. Given a random start, the core function (see “core_oblique_sparse_PCA.R”) runs NRSTARTS times, and the solution with the lowest loss value is retained.
A |
The I by Q estimated sparse connection strength matrix. |
P |
The J by Q estimated activity matrix. |
VAF |
The proportion of variation accounted for by the sparse components. |
Loss_sparse |
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
Schouteden M, Van Deun K, Westerhuis JA, Hasdemir D, and Van Mechelen I. (2012). ENCA: An R package for exploratory network component analysis. Manuscript submitted for publication.
Van Deun, K., Wilderjans,T.F., van den Berg, R.A., Antoniadis, A. and Van Mechelen, I. (In press). A flexible framework for sparse simultaneous component based data integration, BMC Bioinformatics.
core_sparse_oblique_PCA.R, cross_validation.R
#Load data and set input parameters data(DataSpellman) X=DataSpellman Q=5 LASSO=2.5 MAXITER=50 NRSTARTS=2 eps=1e-4 PRINT=TRUE #run oblique_sparse_PCA tmp=oblique_sparse_PCA(X, Q, LASSO, MAXITER, NRSTARTS, eps, PRINT) A=tmp[[1]] P=tmp[[2]] VAF=tmp[[3]] Loss_sparse=tmp[[4]]