nPLSPred

Location: ..\cubatch\Model_nPLS1\nPLSPred.m

function Predictions = nPLSPred (X,Model_Parameters,varargin);

Description:
Apply an nPLS1 model to a new set of data (X) yielding the new scores and predictions.
The model parameters are passed to this function in a structure with suitable fields (e.g. ModelOut.model)
 

Inputs:
X: double array of data
Model_Parameters: ModelOut.model structure relative to the (n)PLS1 model.
varargin: additional inputs for the npred function (used here only to remove the screen output).

Outputs:
Predictions: structure with four fields

  1. xfactors, matrix of doubles with the new scores
  2. xpred, predictions for X.
  3. ypred, predictions for Y.
  4. yfactors, scores in prediction for Y (NB the formula to compute these values is currently incorrect, thus these values cannot be used and are disregarded in the rest of the GUI; the error will be corrected in future releases)

Called by:
Model_nPLS1\nPLS1Apply, Model_nPLS1\Calculate, Model_nPLS1\Plot_D_Statistic, Model_nPLS1\Plot_Partial_RSS_OnLine

Subroutines:
Internal: None
External: npred, nshape

Author:
Giorgio Tomasi
Royal Agricultural and Veterinary University
MLI, LMT, Chemometrics group
Rolighedsvej 30
DK-1958 Frederiksberg C
Danmark

Last modified: 16-Oct-2002 12:04:52

Contact: Giorgio Tomasi, gt@kvl.dk

References