0

I'd like to perform classification with plsda and use the caret::train function to take care of the cross validation. I see that plsda is included in caret, but the example doesn't show it used with train. Instead the train and test sets are hardcoded once. When I try to include method = plsrda in caret::train I get

Error: Model plsda is not in caret's built-in library

I know one option is to code a cross-validated plsda myself, but I'd really like to just throw it into caret::train. Is this possible?

R Greg Stacey
  • 425
  • 4
  • 15
  • You could use `pls` in `train`. Check here [Available models](https://topepo.github.io/caret/available-models.html) – Quinten Jan 04 '23 at 19:14

0 Answers0