shiftBetas {Harman}R Documentation

Shift beta values from 0 and 1 to avoid infinite M values

Description

A convienance function for methylation data.

Usage

shiftBetas(betas, shiftBy = 1e-04)

Arguments

betas

matrix, beta values.

shiftBy

numeric, the amount to shift values of 0 and 1 by.

Value

None

Examples

betas <- seq(0, 1, by=0.05)
range(betas)
newBetas <- shiftBetas(betas, shiftBy=1e-4)
newBetas
range(newBetas)

[Package Harman version 1.12.0 Index]