selectBestComponent | R Documentation |
Select the best component for PLS-DA
selectBestComponent(para, np = 10, sample = NULL, t = 1,
method = "oscorespls", scale = NULL, center = TRUE,
valueID = "valueNorm", validation = "CV", k = 7, ...)
para |
A metaXpara object |
np |
The number of max component |
sample |
The sample class used |
t |
Method used to transform the data |
method |
See |
scale |
Method used to scale the data |
center |
Centering |
valueID |
The name of column contained the data |
validation |
See |
k |
k-fold |
... |
Additional parameter |
A list
Bo Wen wenbostar@gmail.com
para <- new("metaXpara")
pfile <- system.file("extdata/MTBLS79.txt",package = "metaX")
sfile <- system.file("extdata/MTBLS79_sampleList.txt",package = "metaX")
rawPeaks(para) <- read.delim(pfile,check.names = FALSE)
sampleListFile(para) <- sfile
para <- reSetPeaksData(para)
para <- missingValueImpute(para)
selectBestComponent(para,np=10,sample=c("S","C"),scale="uv",valueID="value")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.