PCA {fMRItools} | R Documentation |
PCA for tall matrix
Description
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.
Usage
PCA(X, center = TRUE, Q = NULL, Q_max = 100, Vdim = 0)
Arguments
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: |
Value
The SVD decomposition
Examples
U <- matrix(rnorm(900), nrow=300, ncol=3)
V <- matrix(rnorm(15), nrow=3, ncol=5)
PCA(U %*% V)