estBetaAlpha {methInheritSim}R Documentation

Estimate the alpha parameter of a Beta distribution

Description

Estimate the alpha parameter from the mean and the variance of a Beta distribution.

Usage

estBetaAlpha(meanCtrl, varCtrl, minVal = 1e-06)

Arguments

meanCtrl

a double, the mean of the controls (CTRL) at a specific CpG site.

varCtrl

a double, the variance of the controls (CTRL) at a specific CpG site.

minVal

a double, the minimum value accepted for the mean value. If meanCtrl is smaller than minVal, then minVal is used in the calculation of the alpha parameter. Default: 1e-06.

Value

a double, the alpha parameter of a Beta distribution.

Author(s)

Pascal Belleau, Astrid Deschenes

Examples


## Estimate alpha parameters with mean = 0.5 and variance = 0.1
methInheritSim:::estBetaAlpha(meanCtrl = 0.5, varCtrl = 0.1)


[Package methInheritSim version 1.12.0 Index]