glmnetWrapper: warpper function of parameters for glmnet function

Description Usage Arguments Details Value Examples

View source: R/glmnetWrapper.R

Description

warpper function of parameters for glmnet function

Usage

1
2
3
glmnetWrapper(alpha, trainTable_df, respCol_index, family = c("gaussian",
  "binomial", "poisson", "multinomial", "cox", "mgaussian"), seed_int,
  whichRep_int, whichCVfold_int)

Arguments

alpha

one alpha value for glmnet

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

which col number is response variable in Methylation Mvalue data frame

family

Response type

seed_int

seed.value in use right row

whichRep_int

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

whichCVfold_int

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

Details

function that create input of function evaluateGlmnet

Value

A list contains results of glmnet

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
 data(ExampleMvalue_train)
 fit <- glmnetWrapper(
    alpha = 0,
    trainTable_df = ExampleMvalue_train,
    respCol_index = 1,
    family = "binomial",
    seed_int = 120,
    whichRep_int = 1,
    whichCVfold_int = 5
   )
 
## End(Not run)

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