caretWrapper: warpper function of parameters for ramdom forest or suppport...

Description Usage Arguments Value Examples

View source: R/caretWrapper.R

Description

warpper function of parameters for ramdom forest or suppport vector machine

Usage

1
2
caretWrapper(trainTable_df, respCol_index, predMethod = c("rf",
  "svmLinear"), seed_int, whichCVfold_int, ncores = 2)

Arguments

trainTable_df

train data frame that each column represents a CpG probe while each row represents a sample, each cell is a methaylation M value

respCol_index

response variable col number in beta data frame

predMethod

use random forest or svm to do prediction

seed_int

seed.value in use right row

whichCVfold_int

crossvalidation num in use right now, this decides on the traning data to be used

ncores

number of cores to do parallel computing

Value

A list contains results of glmnet

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
 data(ExampleMvalue_train)
 fit <- caretWrapper(trainTable_df = ExampleMvalue_train,
               respCol_index = 1,
               predMethod = "rf",
               seed_int = 120,
               whichCVfold_int = 5,
               ncores = 2)
 
## End(Not run)

lizhongliu1996/PredictMisc documentation built on Aug. 23, 2019, 5:55 a.m.