inner_predict_model_expr: (INNER) Predict expression

Description Usage Arguments Value Author(s) See Also Examples

View source: R/predict_expr.R

Description

This functions makes predictions of gene expression levels using a model trained on methylation features extracted from genomic regions.

Usage

1
inner_predict_model_expr(model, test, is_summary = TRUE)

Arguments

model

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

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

predict_expr

Examples

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

# Train the model
train_model <- inner_train_model_expr(formula = y~., model_name="svm",
                                      train = train_data)

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

andreaskapou/BPRMeth documentation built on June 11, 2020, 10:49 p.m.