my_plsDA: PLS Discriminant Analysis
Description
Perform a PLS discriminant analysisUsage
my_plsDA(X, y, learn, test, autosel, comps, cv = "LOO",
k = NA)Arguments
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
"LOO" (Leave-One-Out) and "LKO" (Leave-K
fold-Out)
k
fold left out if using LKO