loadings {OmicsPLS} | R Documentation |
Extract the loadings from an O2PLS fit
Description
This function extracts loading parameters from an O2PLS fit
Usage
loadings(x, ...)
## S3 method for class 'o2m'
loadings(
x,
loading_name = c("Xjoint", "Yjoint", "gr_Xjoint", "gr_Yjoint", "Xorth", "Yorth"),
subset = 0,
sorted = FALSE,
...
)
Arguments
x |
Object of class |
... |
For consistency |
loading_name |
character string. One of the following: 'Xjoint', 'Yjoint', 'gr_Xjoint', 'gr_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
See Also
Examples
loadings(o2m(scale(-2:2),scale(-2:2*4),1,0,0))
[Package OmicsPLS version 2.0.2 Index]