loadings: Extract the loadings from an O2PLS fit

Description Usage Arguments Value Examples

View source: R/O2PLS.R

Description

This function extracts loading parameters from an O2PLS fit

Usage

1
2
3
4
5
loadings(x, ...)

## S3 method for class 'o2m'
loadings(x, loading_name = c("Xjoint", "Yjoint", "Xorth",
  "Yorth"), subset = 0, sorted = FALSE, ...)

Arguments

x

Object of class o2m

...

For consistency

loading_name

character string. One of the following: 'Xjoint', 'Yjoint', 'Xorth' or 'Yorth'.

subset

subset of loading vectors to be extracted.

sorted

Logical. Should the rows of the loadings be sorted according to the absolute magnitute of the first column?

Value

Loading matrix

Examples

1
loadings(o2m(scale(-2:2),scale(-2:2*4),1,0,0))

selbouhaddani/O2PLS documentation built on May 29, 2019, 5:53 p.m.