If no test set is available, criteria computed by K-corss-validation are provided:
Q2
the Q2 evaluated by cross-validation (by default, K=10)
RMSE CV
RMSE computed by cross-validation
Note that the penalty parameter could be chosen by minimizing the value of the RMSE by cross-validation.
Arguments
X
a data.frame containing the design of experiments
Y
a vector containing the response variable
test
a data.frame containing the design and the response of a test set when available, the prediction criteria will be computed for the test data (default corresponds to no test set)
graphic
if TRUE the values of the criteria are represented
K
the number of folds for cross-validation (by default, K=10)
Penalty
a vector containing the values of the penalty parameter