Residuals values from a PCA model.
This function extracts the residuals values from a pcaRes object for the PCA methods SVD, Nipals, PPCA and BPCA
## S3 method for class 'pcaRes' residuals(object, data = completeObs(object), ...) ## S4 method for signature 'pcaRes' residuals(object, data = completeObs(object), ...) ## S4 method for signature 'pcaRes' resid(object, data = completeObs(object), ...)
object |
|
data |
|
... |
Passed on to |
A matrix
with the residuals
Henning Redestig
data(iris) pcIr <- pca(iris[,1:4]) head(residuals(pcIr, iris[,1:4]))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.