IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
irootlab_pls.m File Reference

Detailed Description

Partial Least Squares.

PLS according to [1]. This PLS works with one response variable only (which is typically the class - sometimes called PLSDA (PLS Discriminant Analysis)).

Reference:

[1] Hastie, The elements of Statistical Learning, 2001, Algorithm 3.2, p.68

Definition in file irootlab_pls.m.

Go to the source code of this file.

Functions

function irootlab_pls (in X, in Y, in no_factors)
 Important: X-variables (columns of X) need to be standardized, otherwise the function will give an error. More...
 

Function Documentation

function irootlab_pls ( in  X,
in  Y,
in  no_factors 
)

Important: X-variables (columns of X) need to be standardized, otherwise the function will give an error.

Parameters
X"Predictor" variables
Y"Response" variable. This PLS works with one variable only!
no_factorsNumber of variables to be calculated.
Returns
[loadings] or [loadings, scores]