rnb.beta2mval {RnBeads} | R Documentation

## 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.

### Author(s)

Fabian Mueller

### Examples

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

[Package RnBeads version 1.10.8 Index]