myPLSDA: Perform PLS-DA analysis

myPLSDAR Documentation

Perform PLS-DA analysis

Description

Perform PLS-DA analysis

Usage

myPLSDA(x, y, save, select, ...)

Arguments

x

A matrix of observations

y

a vector or matrix of responses

save

A logical indicates whether save the plsr result

select

A logical indicates whether select the best component

...

Additional parameters

ncomp

The number of component used for PLS-DA

validation

See plsr

method

See plsr

k

k-fold

Value

The PLS-DA result

Author(s)

Bo Wen wenbostar@gmail.com

Examples

x <- matrix(rnorm(1000),nrow = 10,ncol = 100)
y <- rep(0:1,5)
res <- myPLSDA(x,y,save=TRUE,ncomp=2,validation="CV",k=7,
    method="oscorespls")

wenbostar/metaX documentation built on July 4, 2023, 7:50 p.m.