Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

residuals

Residuals method for (O)PLS models


Description

Returns the residuals from the (O)PLS(-DA) regression models

Usage

residuals(object, ...)

Arguments

object

An S4 object of class opls, created by opls function.

...

Currently not used.

Value

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)

Author(s)

Etienne Thevenot, etienne.thevenot@cea.fr

Examples

data(sacurine)
attach(sacurine)

sacurine.pls <- opls(dataMatrix,
                     sampleMetadata[, "age"])

head(residuals(sacurine.pls))

detach(sacurine)

ropls

PCA, PLS(-DA) and OPLS(-DA) for multivariate analysis and feature selection of omics data

v1.22.0
CeCILL
Authors
Etienne A. Thevenot <etienne.thevenot@cea.fr>
Initial release
2020-03-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.