estBetaAlpha: Estimate the alpha parameter of a Beta distribution

Description Usage Arguments Value Author(s) Examples

View source: R/methylInheritanceSimInternalMethods.R

Description

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

Usage

1
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

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

methInheritSim documentation built on Nov. 8, 2020, 7:54 p.m.