Perform a PLS discriminant analysis
1 2 |
X |
matrix or data.frame with explanatory variables |
y |
vector or factor with group membership |
learn |
vector of learning observations |
test |
vector of testing observations |
autosel |
logical indicating automatic selection of PLS comps |
comps |
number of PLS components (only when autosel=FALSE) |
cv |
cross validation method. Options are
|
k |
fold left out if using LKO |
retain.models |
whether to retain lower models (i.e. all lower component results) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.