rediduals-methods | R Documentation |
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]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.