train_model_gex: Train gene expression model from methylation profiles

Description Usage Arguments Value Author(s) See Also Examples

Description

train_model_gex trains a regression model for predicting gene expression levels by taking as input the higher order methylation features extracted from specific genomic regions.

Usage

1
2
train_model_gex(formula = NULL, model_name = "svm", train,
  is_summary = TRUE)

Arguments

formula

An object of class formula, e.g. see lm function. If NULL, the simple linear regression model is used.

model_name

A string denoting the regression model. Currently, available models are: "svm", "randomForest", "rlm", "mars" and "lm".

train

The training data.

is_summary

Logical, print the summary statistics.

Value

A list containing the following elements:

Author(s)

C.A.Kapourani C.A.Kapourani@ed.ac.uk

See Also

predict_model_gex

Examples

1
2
3
4
5
6
# Create synthetic data
train_data <- data.frame(x = rnorm(20), y=rnorm(20, 1, 4))
res <- train_model_gex(formula = y~., train = train_data)

# Using a different model
res <- train_model_gex(model_name = "randomForest", train = train_data)

andreaskapou/BPRMeth-devel documentation built on May 12, 2019, 3:32 a.m.