Learn R Programming

loadings (version 0.5.1)

pls_svd: Partial least squares

Description

This function performs partial least squares. In this function, data matrix for explanatory variable is automatically scaled to zero mean and unit variance (i.e. autoscaling) for each variables.

Usage

pls_svd(X,Y)

Value

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

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

Arguments

X

Data matrix of explanatory variables that include variables in each columns.

Y

Dummy matrix that include group information 0,1 in each columns.

Author

Hiroyuki Yamamoto

Details

This function is wrapper function of "pls_rog" fucntion that the smoothing parameter kappa=0.

References

Barker, M. and Rayens, W. (2003) Partial Least Squares for Discrimination. Journal of Chemometrics, 17, 166-173.

Examples

Run this code
data(whhl)
X <- whhl$X$liver
Y <- whhl$Y

pls <- pls_svd(X,Y)

Run the code above in your browser using DataLab