fitted.pcaRes {pcaMethods}R Documentation

Extract fitted values from PCA.

Description

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.

Usage

fitted.pcaRes(object, data=NULL, nPcs=object@nPcs,...)

Arguments

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.

Value

A matrix with the fitted values.

Author(s)

Henning Redestig <redestig[at]mpimp-golm.mpg.de>


[Package pcaMethods version 1.14.0 Index]