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.
The tall numeric matrix for which to compute the PCA. For fMRI data,
X should be V brain locations by T timepoints.
center
Center the columns of X? Default: TRUE. Set to
FALSE if already centered. Centered data is required to compute PCA.
Q
Number of latent dimensions to estimate. If NULL (default),
estimated using PESEL (Sobczyka et al. 2020).
Q_max
Maximal number of principal components for automatic
dimensionality selection with PESEL. Default: 100.
Vdim
Number of principal directions to obtain. Default: 0. Can
also be "Q" to set equal to the value of Q. Note that setting
this value less than Q does not speed up computation time, but does
save on memory. Note that the directions will be with respect to X,
not its covariance matrix.