apply_pca | R Documentation |
Preprocess the data matrix to remove the null space using PCA
and retain a number of principal components that explain at least
var_retained
proportion of variance.
apply_pca(X, var_retained = 0.95)
X |
Data matrix of size n x d (n samples, d features). |
var_retained |
Proportion of variance to retain (default is 0.95). |
A list containing:
X_pca |
The transformed data matrix after PCA (n x d_pca). |
rot |
The PCA rotation/loadings matrix (d x d_pca). |
fit |
The PCA fit object from |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.