predict_model_gex: Predict gene expression model from methylation profiles

Description Usage Arguments Value Author(s) See Also Examples

Description

predict_model_gex makes predictions of gene expression levels using a model trained on higher order methylation features extracted from specific genomic regions.

Usage

1
predict_model_gex(model, test, is_summary = TRUE)

Arguments

model

The fitted regression model, i.e. the output of train_model_gex.

test

The testing 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

train_model_gex

Examples

1
2
3
4
5
6
7
8
9
# Create synthetic data
train_data <- data.frame(x = rnorm(20), y=rnorm(20, 1, 4))
test_data <- data.frame(x = rnorm(20), y=rnorm(20, 1, 3))

# Train the model
train_model <- train_model_gex(formula = y~., train = train_data)

# Make predictions
res <- predict_model_gex(model = train_model$gex_model, test = test_data)

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