estBetaBeta {methInheritSim}R Documentation

Estimate the beta parameter of a beta distribution

Description

Estimate the beta parameter from the mean and the variance of a beta distribution.

Usage

estBetaBeta(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 beta paramter. Default: 1e-06.

Value

a double, the beta parameter of a Beta distribution.

Author(s)

Pascal Belleau, Astrid Deschenes

Examples


## Estimate beta parameters with mean = 0.5, variance = 0.1
methInheritSim:::estBetaBeta(meanCtrl=0.5, varCtrl=0.1)


[Package methInheritSim version 1.4.1 Index]