I have this output when I use GRIDSCORELV function for Cross validation:
Nb combinations = 0
End.
How can I solve this problem and add some combinations to the analysis?
I would like to do Stratified sampling (I am doing a classification PLSDA analysis in order to classify inoculated from non inoculated petals).
Thanks for including code in your post - to make it reproducible, please include only objects that are available to others. For example, we can't run your example because we don't have the object Start. That makes it a little hard to help you. If you want to do cross-validation with stratified sampling, you could look at the vfold_cv() function from the rsample package. It's made to be used in the tidymodels ecosystem but you can pull out regular data frames with training() and testing().