select the best ncomp with cross-validation and use it to fit the complete training set again, then predict on the test set. scale = TRUE
1 | enpls.ad.core(plsdf.x, plsdf.y, x.test, maxcomp = NULL)
|
predicted y for test set
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.