Does cross-validation of a regression model
crossval.regmodel(obj, x, y, cv, cal.fun)object of class plsres with results of cross-validation
a regression model (object of class regmodel)
a matrix with x values (predictors from calibration set)
a matrix with y values (responses from calibration set)
number of segments (if cv = 1, full cross-validation will be used)
reference to function for model calibration