spcaWrapper | R Documentation |
This wrapper function specifies which implementation of sparse
pricincipal component analysis (SPCA) is used to sparsify the loadings of
the contrastive covariance matrix. Currently, the scPCA
package
supports the iterative algorithm detailed by
\insertCitezou2006sparse;textualscPCA, and
\insertCiteerichson2018sparse;textualscPCA's randomized and non-randomized
versions of SPCA solved via variable projection. These methods are
implemented in the elasticnet and sparsepca packages.
spcaWrapper(
alg,
contrast_cov,
contrast,
k,
penalty,
eigdecomp_tol,
eigdecomp_iter
)
alg |
A |
contrast_cov |
A contrastive covariance |
contrast |
A |
k |
A |
penalty |
A |
eigdecomp_tol |
A |
eigdecomp_iter |
A |
A p x k
sparse loadings matrix, where p
is the
number of features, and k
is the number of sparse contrastive
components.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.