residuals {ropls} | R Documentation |
Returns the residuals from the (O)PLS(-DA) regression models
residuals(object, ...)
object |
An S4 object of class |
... |
Currently not used. |
Numeric matrix or vector (same dimensions as the modeled y response); if y is a character vector or a factor (in case of classification), the residuals equal 0 (predicted class identical to the true class) or 1 (prediction error)
Etienne Thevenot, etienne.thevenot@cea.fr
data(sacurine) attach(sacurine) sacurine.pls <- opls(dataMatrix, sampleMetadata[, "age"]) head(residuals(sacurine.pls)) detach(sacurine)