applies a calibration model calculated with pls, vodka, pcr, mlr or ridge to a new dataset
res=regapply(model,x,(y),(plot))
model obtained with one of the regression methods (pls, vodka, pcr, mlr or ridge)
test dataset; a matrix (n x q) and an optional vector of reference values y of dimensions (n x 1), or Div structures
figure representing y and ypredtest as abscissa and ordinate respectively; R2, biais and RMSEP are also calculated
the figure is plotted only if the field 'plot' is not empty
predicted values
ypred.d is a matrix (n x lv) with lv = number of calibration models in the 'model' structure
root mean square error of prediction (if y is given)
rmsep.d is a vector (lv x 1)
squared correlation coefficient (if y is given)
r2.d is a vector (lv x 1)