.pls | R Documentation |
Perform a PLS discriminant analysis
.pls(X, Y, nc, cv = TRUE, nr_folds = 5)
X |
a matrix of predictor variables. |
Y |
a single vector indicate the group |
nc |
the number of pls components . |
cv |
logical indicating whether cross-validation will be performed or not (suggest TRUE). |
nr_folds |
nr_folds Integer to indicate the folds for cross validation. @return list with PLS results |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.