Description Usage Arguments Value Examples
View source: R/beta2M_wrapper.R
wrapper function to do beta to m value transformation
1 2 | beta2M_wrapper(beta2M = TRUE, BetaPhenoTrain_df, BetaPhenoTest_df,
respCol_index, returnType = "matrix")
|
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 |
A list of two elements: train data frame and test data frame
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.