Learn R Programming

RnBeads (version 1.4.0)

rnb.beta2mval: rnb.beta2mval

Description

Transforms beta values to M values, adjusting for +infinity and -infinity.

Usage

rnb.beta2mval(betas, epsilon = 1e-05)

Arguments

betas
numeric vector or matrix of beta values to be transformed.
epsilon
Single numeric in the range [0, 0.5], giving the threshold of beta values to use when adjusting for potential M values close to +infinity or -infinity. Setting this parameter to 0 (zero) disables stabilization; in which case M values of -infinity or +infinity could be returned.

Value

The calculated and adjusted M values.

Examples

Run this code

library(RnBeads.hg19)
data(small.example.object)
logger.start(fname=NA)
mvals <- rnb.beta2mval(meth(rnb.set.example))
summary(mvals)

Run the code above in your browser using DataLab