myPLSDA | R Documentation |
Perform PLS-DA analysis
myPLSDA(x, y, save, select, ...)
x |
A matrix of observations |
y |
a vector or matrix of responses |
save |
A logical indicates whether save the |
select |
A logical indicates whether select the best component |
... |
Additional parameters |
ncomp |
The number of component used for PLS-DA |
validation |
See |
method |
See |
k |
k-fold |
The PLS-DA result
Bo Wen wenbostar@gmail.com
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.