Description Usage Arguments Details Value References Examples
Uses the L1-penalized matrix decomposition in pmd
to obtain sparse principal
components analysis of rank-1. This function is called by mspca
, which should
be used in applications.
1 2 3 4 5 6 7 8 9 |
Z |
Matrix to be decomposed |
c |
L1-norm bound for u, the left singular vector. Feasible solutions are available
when values greater than or equal to 1. For values larger than |
vstart |
Optional starting value for the v vector |
maxit |
Maximum number of iterations |
eps |
Stopping criterion, and absolute error tolerance on the mean squared reconstruction error |
center |
Logical indicating whether the columns of |
scale |
Logical indicating whether the standard deviations of the column of |
Note that in the SPC
implementation, the overall mean of the input
matrix is set equal to zero before analysis when the (default) center = TRUE
. This
is not done here, or even given as an option.
A list with the penalized singular value decomposition(d
, u
, v
),
the vector of errors (error
), and the number of iterations (iteration
). The output from
mspca
is more appropriate for PCA, and that function should be used.
Witten, D. M., Tibshirani, R., & Hastie, T. (2009). A penalized matrix decomposition, with applications to sparse principal components and canonical correlation analysis. Biostatistics, 10(3), 515-534.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.