createModels: Create predictive models

View source: R/bootPLSDA.R

createModelsR Documentation

Create predictive models

Description

Create predictive models

Usage

createModels(para, method = "plsda", group = NA, valueID = "value",
  ...)

Arguments

para

An object of metaXpara

method

Method for model construction

group

Sample class used

valueID

The name of column used

...

Additional arguments.

Value

A list object

Examples

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")

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