myPLSDA: Perform PLS-DA analysis

Description Usage Arguments Value Author(s) Examples

Description

Perform PLS-DA analysis

Usage

1
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 wenbo@genomics.cn

Examples

1
2
3
4
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")

metaX documentation built on Oct. 5, 2016, 4:41 a.m.

Related to myPLSDA in metaX...