PCA | R Documentation |
Efficient PCA for a tall matrix (many more rows than columns). Uses the SVD
of the covariance matrix. The dimensionality of the result can be preset
with Q
or estimated with PESEL.
PCA(X, center = TRUE, Q = NULL, Q_max = 100, Vdim = 0)
X |
The tall numeric matrix for which to compute the PCA. For fMRI data,
|
center |
Center the columns of |
Q |
Number of latent dimensions to estimate. If |
Q_max |
Maximal number of principal components for automatic
dimensionality selection with PESEL. Default: |
Vdim |
Number of principal directions to obtain. Default: |
The SVD decomposition
U <- matrix(rnorm(900), nrow=300, ncol=3)
V <- matrix(rnorm(15), nrow=3, ncol=5)
PCA(U %*% V)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.