Arguments
x
a matrix with x values (predictors)
y
a matrix with y values (responses)
ncomp
number of components to calculate
center
logical, do mean centering or not
scale
logical, do standardization or not
method
algorithm for compiting PC space (only 'simpls' is supported so far)
cv
logical, does calibration for cross-validation or not
light
logical, calculate a "light" model or normal one