powered by
This function extracts loading parameters from an O2PLS fit
loadings(x, ...)# S3 method for o2m loadings( x, loading_name = c("Xjoint", "Yjoint", "gr_Xjoint", "gr_Yjoint", "Xorth", "Yorth"), subset = 0, sorted = FALSE, ... )
# S3 method for o2m loadings( x, loading_name = c("Xjoint", "Yjoint", "gr_Xjoint", "gr_Yjoint", "Xorth", "Yorth"), subset = 0, sorted = FALSE, ... )
Loading matrix
Object of class o2m
o2m
For consistency
character string. One of the following: 'Xjoint', 'Yjoint', 'gr_Xjoint', 'gr_Yjoint', 'Xorth' or 'Yorth'.
subset of loading vectors to be extracted.
Logical. Should the rows of the loadings be sorted according to the absolute magnitute of the first column?
scores
loadings(o2m(scale(-2:2),scale(-2:2*4),1,0,0))
Run the code above in your browser using DataLab