Learn R Programming

ropls (version 1.4.2)

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

Description

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

Usage

"getLoadingMN"(object, orthoL = FALSE)

Arguments

object
An S4 object of class opls, created by opls function.
orthoL
Logical: Should the orthogonal loading matrix be returned (default is FALSE and the predictive loading matrix is 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

Examples

Run this code

data(sacurine)
attach(sacurine)

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

getLoadingMN(sacurine.plsda)

detach(sacurine)

Run the code above in your browser using DataLab