beta2M_wrapper: wrapper function to do beta to m value transformation

Description Usage Arguments Value Examples

View source: R/beta2M_wrapper.R

Description

wrapper function to do beta to m value transformation

Usage

1
2
beta2M_wrapper(beta2M = TRUE, BetaPhenoTrain_df, BetaPhenoTest_df,
  respCol_index, returnType = "matrix")

Arguments

beta2M

whether transfre beta to m value before prediction

BetaPhenoTrain_df

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

BetaPhenoTest_df

test data frame that each column represents a CpG probe while each row represents a sample, each cell is a M value, first column is phenodata

respCol_index

response variable col number in beta data frame

returnType

return data type, data frame or matrix, default set to matrix

Value

A list of two elements: train data frame and test data frame

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
   data(ExampleMvalue_train)
   data(ExampleMvalue_test)

   test <- beta2M_wrapper(
     beta2M = TRUE,
     BetaPhenoTrain_df = ExampleMvalue_train,
     BetaPhenoTest_df = ExampleMvalue_test,
     respCol_index = 1,
     returnType = "matrix"
   )
 
## End(Not run)

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