Learn R Programming

wateRmelon (version 1.16.0)

agep: Age Prediction from methylomic expression data

Description

Predict age of samples using Horvath's Coefficients

Usage

agep(betas, coeff=NULL, verbose=FALSE)

Arguments

betas
Matrix of betas
coeff
If NULL, will default to Horvath's coefficients. Otherwise can be supplied with vector of own coefficients with an intercept as first element.
verbose
If TRUE, agep will additionally print out names of probes that are missing from coefficient list within supplied beta matrix.

Value

Returns matrix of predicted ages per sample.

References

Horvath S: DNA methylation age of human tissues and cell types. Genome Biology 2013, 14:R115

Examples

Run this code
data(melon)
agep(betas(melon))

Run the code above in your browser using DataLab