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

getLoadingMN

getLoadingMN method for PCA/(O)PLS(-DA) models


Description

(Orthogonal) loadings of the PCA/(O)PLS(-DA) model

Usage

getLoadingMN(object, ...)

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

Arguments

object

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

...

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

orthoL

Logical: Should the orthogonal loading 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

data(sacurine)
attach(sacurine)

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

getLoadingMN(sacurine.plsda)

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.