fitted: Fitted method for 'opls' objects

Description Usage Arguments Value Author(s) Examples

Description

Returns predictions of the (O)PLS(-DA) model on the training dataset

Usage

1
2
## S4 method for signature 'opls'
fitted(object, ...)

Arguments

object

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

...

Currently not used.

Value

Predictions (either a vector, factor, or matrix depending on the y response used for training the model)

Author(s)

Etienne Thevenot, etienne.thevenot@cea.fr

Examples

1
2
3
4
5
6
7
data(sacurine)
attach(sacurine)
sacurine.plsda <- opls(dataMatrix, sampleMetadata[, "gender"])

fitted(sacurine.plsda)

detach(sacurine)

SamGG/ropls documentation built on May 29, 2019, 1:51 a.m.