Description Usage Arguments Value Note Author(s) See Also Examples
Subtract column means and transform columns such that the empirical covariance is equal to the identity matrix. Uses the SVD.
1 |
X |
n x p matrix |
n.comp |
number of components to retain, i.e., first n.comp left eigenvectors from svd are retained |
center.row |
center both rows and columns prior to applying SVD (the resulting whitened data does not have zero-mean rows) |
irlba |
if TRUE, uses irlba to approximate the first n.comp left eigenvectors. See Note. |
whitener |
the matrix such that X%*%whitener has zero mean and covariance equal to the identity matrix |
Z |
the whitened data, i.e., X%*%whitener = Z |
The use of the option 'irlba = TRUE' requires the package irlba and is very useful for large p. The function irlba only calculates the first n.comp eigenvectors and is much faster than svd for p >> n.comp, for e.g., in groupICA of fMRI data.
Benjamin Risk
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.