getScoreMN: getScoreMN method for PCA/(O)PLS(-DA) models

Description Usage Arguments Value Author(s) Examples

Description

(Orthogonal) scores of the (O)PLS(-DA) model

Usage

1
2
3
4
getScoreMN(object, ...)

## S4 method for signature 'opls'
getScoreMN(object, orthoL = FALSE)

Arguments

object

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

...

Currently not used.

orthoL

Logical: Should the orthogonal score matrix be returned (default is FALSE and the predictive score matrix is returned)

Value

Numeric matrix with a number of rows equal to the number of samples and a number of columns equal to the number of components

Author(s)

Etienne Thevenot, [email protected]

Examples

1
2
3
4
5
6
7
8
9
data(sacurine)
attach(sacurine)

sacurine.plsda <- opls(dataMatrix,
                       sampleMetadata[, "gender"])

getScoreMN(sacurine.plsda)

detach(sacurine)

ropls documentation built on Nov. 17, 2017, 1:09 p.m.