pls_loading | R Documentation |
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.
pls_loading(pls)
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 |
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.
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
Hiroyuki Yamamoto
Yamamoto, H. (2017) PLS-ROG: Partial least squares with rank order of groups., Journal of Chemometrics, 31(3) (2017) e2883.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.