reconstruct.pca: Reconstruct Data from PCA Results
Description
Reconstructs the original (centered) data matrix from the PCA scores and loadings.
Usage
# S3 method for pca
reconstruct(x, comp = 1:ncomp(x), ...)
Value
A matrix representing the reconstructed data in the original scale (preprocessing reversed).
Arguments
- x
A pca object.
- comp
Integer vector specifying which components to use for reconstruction (default: all components in x).
- ...
Extra arguments (ignored).