createModels | R Documentation |
Create predictive models
createModels(para, method = "plsda", group = NA, valueID = "value",
...)
para |
An object of |
method |
Method for model construction |
group |
Sample class used |
valueID |
The name of column used |
... |
Additional arguments. |
A list object
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)
para <- transformation(para,method = 1,valueID = "value")
para <- metaX::preProcess(para,scale = "uv",center = TRUE,
valueID = "value")
rs <- createModels(para,method="plsda",group=c("S","C"),valueID="value")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.