loadings: Print loadings of plsr object

Description Usage Arguments Examples

View source: R/pls_func.R

Description

This will print the loading matrices V and U that project from original data spaces X and Y to latent space.

Usage

1
loadings(x, mat = NULL)

Arguments

x

A plsr object.

mat

Which matrix to print. Can be "V" or "U", if NULL (default) will print both.

Examples

1
2
3
4
plsr_obj = pls(rating_data,tracking_data,10,10)
loadings(plsr_obj) #show V and U
loadings(plsr_obj,"V") #show V only
loadings(plsr_obj,"U") #show U only

plsr documentation built on May 1, 2019, 11:28 p.m.