Specific: Function for associating race specific DNA methylation with...

Description Usage Arguments Value Examples

View source: R/Specific.R

Description

This function allows one to associate DNA methylation with matched mRNA expression in a multivariate context in race specific data.

Usage

1
Specific(x, y, alpha, nfolds, clin)

Arguments

x

Processed DNA methylation with covariates. Race must be the final term

y

Raw expression count vector

alpha

Elastic net mixing penalty. Defaults to 0.5

nfolds

the number of folds to use for cross-validation

clin

a matrix of clinical covariates

Value

returns list of three elements for summarizing model construction. Model is the predicted model for the gene. Predicted.Expression is the Cross-validated predicted expression. Overall.D2 The prediction accuracy for the model.

Examples

1
2
3
data.whole = cbind(matrix(rnorm(500),nrow=50), rbinom(50,1,0.5))
RNA_tmp <- rpois(50,15)
Specif(data.whole, RNA_tmp, alpha = 0.5, nfolds = 5, clin = NULL)

iloveless1/EPIExPRS documentation built on Dec. 20, 2021, 6:55 p.m.