pls_loading: Partial least squares loading

View source: R/pls_loading.R

pls_loadingR Documentation

Partial least squares loading

Description

This function computes partial least squares (PLS) loading from the result of the "pls_svd" function. PLS loading can also be computed from the result of the "pls_eigen" function in chemometrics package.

Usage

pls_loading(pls)

Arguments

pls

The following variables (P,T,Q and U) are included in the pls object.

P : A matrix with PLS loading for explanatory variable in each column

T : A matrix with PLS score for explanatory variable in each column

Q : A matrix with PLS loading for response variable in each column

U : A matrix with PLS score for response variable in each column

Details

The PLS loading and the p-value by statistical hypothesis testing is added to the pls object returned by the "pls_svd" function in this package or "pls_eigen" function in chemometrics package.

Value

The return value is a list object that contains the following elements:

R : PLS loading (Correlation coefficient between PLS score of response variable and each variables in data matrix.)

p.value : p-value of PLS loading

Author(s)

Hiroyuki Yamamoto

References

Yamamoto, H. (2017) PLS-ROG: Partial least squares with rank order of groups., Journal of Chemometrics, 31(3) (2017) e2883.

Examples

data(whhl)
X <- whhl$X$liver
Y <- whhl$Y

pls <- pls_svd(X,Y)

pls <- pls_loading(pls)
pls$loading$R
pls$loading$p.value


loadings documentation built on May 29, 2024, 8:01 a.m.