my_plsDA: PLS Discriminant Analysis

Description Usage Arguments

View source: R/my_plsDA.R

Description

Perform a PLS discriminant analysis

Usage

1
2
  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)


DiscriMiner documentation built on May 1, 2019, 10:32 p.m.