We then evaluated the appropriate number of independent variables by examining the Root Mean Squared Error of Prediction (RMSEP) of each PLSR component, using Random Segment Cross-Validation on the entire sample, seeking the smallest value after the intercept.