getWeightMN: getWeightMN method for (O)PLS(-DA) models

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

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

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

Arguments

object

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

...

Currently not used. (default is FALSE and the predictive weight matrix is returned)

orthoL

Logical: Should the orthogonal weight matrix be returned

Value

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

Author(s)

Etienne Thevenot, etienne.thevenot@cea.fr

Examples

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

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

getWeightMN(sacurine.plsda)

detach(sacurine)


Search within the ropls package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.