X: a data.frame containing the design of experiments
Y: a vector containing the response variable
type: a vector containing the type of models to compare.
The default value is "all"=c("Linear", "StepLinear","Additive", "PolyMARS","MARS","Kriging")
K: the number of folds for cross-validation (default value is set at 10)
test: a data.frame containing the design and the response of a test set when available, the prediction criteria will be evaluated on the test design (default corresponds to no test set)
...: according to the type argument, parameters can be specified (for example, formula and penalty for a stepwise procedure)
Returns
A list containing two fields if the argument test equal NULL and three fields otherwise : - Learning: R2 and RMSE criteria evaluated from learning set,
CV: Q2 and RMSE_CV criteria using K-fold cross-validation,
Test: R2 and RMSE criteria on the test set.
A graphical tool to compare the value of the criteria is proposed.