plsDA: plsDA partial least squares discriminant analysis

View source: R/PLSDA.R

plsDAR Documentation

plsDA partial least squares discriminant analysis

Description

Partial Least Squares Discriminant Analysis PLS regression to discriminate classes (via a logistic model) basically this is a wrapper for the plsda function in the caret package, but with default setup for dealing with uneven classes (via the priors option, see details) see caret::plsda for implementation details

Usage

plsDA(x, grouping, K, usePriors = FALSE, plsfun = caret::plsda, ...)

Arguments

x

data with samples in rows, features are columns (not necessarily compositional data)

grouping

a numeric vector or factor with sample classes (length should equal nrow(x))

K

number of components in the PLS model (default: number of classes - 1)

usePriors

use priors for very biased sample size between groups (ie - put strong penalty on misclassifying small groups)

Details

run this code if you don't need to fit paramaters by cross-validation

Value

a plsda fitted model

See Also

plsDA_main, caret::plsda


zdk123/compPLS documentation built on April 24, 2022, 2:44 p.m.