PLS_Toolbox Documentation: pls | < plotscores | plsda > |
pls
Purpose
Partial least squares regression for univariate or multivariate y-block.
Synopsis
model = pls(x,y,ncomp,options) %calibration
pred = pls(x,model,options) %prediction
valid = pls(x,y,model,options) %validation
options = pls('options')
Description
PLS calculates a single partial least squares regression model using the given number of components ncomp to predict y from measurements x.
To construct a PLS model, the inputs are x the predictor block (2-way array class “double” or class “datadet”), y the predicted block (2-way array class “double” or class “datadet”), ncomp the number of components to to be calculated (positive integer scalar), and the optional structure, options. The output is a standard model structure model with the following fields (see MODELSTRUCT):
To make predictions the inputs are x the new predictor x-block (2-way array class “double” or “dataset”), and model the PLS model. The output pred is a structure, similar to model, that contains scores, predictions, etc. for the new data.
If new y-block measurements are also available then the inputs are x the new predictor x-block (2-way array class “double” or “dataset”), y the new predicted block (2-way array class “double” or “dataset”), and model the PLS model. The output valid is a structure, similar to model, that contains scores, predictions, and additional y-block statistics etc. for the new data.
Note: Calling pls with no inputs starts the graphical user interface (GUI) for this analysis method.
Options
The default options can be retreived using: options = pls('options');.
OUTPUTVERSION
By default (options.outputversion = 3) the output of the function is a standard model structure model. If options.outputversion = 2, the output format is:
[b,ssq,p,q,w,t,u,bin] = pls(x,y,ncomp,options)
where the outputs are
Note: The regression matrices are ordered in b such that each Ny (number of y-block variables) rows correspond to the regression matrix for that particular number of principal components.
Algorithm
Note that unlike previous versions of the PLS function, the default algorithm (see Options, above) is the faster SIMPLS algorithm. If the alternate NIPALS algorithm is to be used, the options.algorithm field should be set to 'nip'.
See Also
analysis, crossval, modelstruct, nippls, pcr, plsda, preprocess, ridge, simpls
< plotscores | plsda > |