.pls {o2plsda} | R Documentation |
Partial least squares discriminant analysis
Description
Perform a PLS discriminant analysis
Usage
.pls(X, Y, nc, cv = TRUE, nr_folds = 5)
Arguments
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 |
[Package o2plsda version 0.0.18 Index]