fitted.pcaRes {pcaMethods} | R Documentation |
This function extracts the fitted values from a pcaRes object. For PCA methods like SVD, Nipals, PPCA etc this is basically just the scores multipled by the loadings, for non-linear PCA the original data is propagated through the network to obtain the approximated data.
fitted.pcaRes(object, data=NULL, nPcs=object@nPcs,...)
object |
pcaRes the pcaRes object of interest. |
data |
matrix For standard PCA methods this can safely be left null to
get scores x loadings but if set then the scores are obtained by
projecting provided data onto the loadings. Non-linear PCA is an
exception, here if data is NULL then data is set to the completeObs
and propagated through the network. |
nPcs |
numeric The amount of PC's to consider |
... |
Not passed on anywhere, included for S3 consistency. |
A matrix with the fitted values.
Henning Redestig <redestig[at]mpimp-golm.mpg.de>