8 criteria to tune the dimension of a PLSR or PCR, obtained on the predictions (RMSECV), on the b-coefficients (b-norm, Durbin-Watson, morphological factor and Gini), and on the deflated X-matrices (KMO-Kaiser-Meyer-Olkin, VIF-Variance Inflation Factor and Durbin-Watson)
res=dimension_tune(model)
a regression model obtained with the PCR or PLSR regression
a Div structure containing, as rows the latent variables, as columns the values of the 8 criteria L