Learn R Programming

DiscriMiner (version 0.1-29)

my_plsDA: PLS Discriminant Analysis

Description

Perform a PLS discriminant analysis

Usage

my_plsDA(X, y, learn, test, autosel, comps, cv = "LOO", k = NA, retain.models = FALSE)

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
retain.models
whether to retain lower models (i.e. all lower component results)