estBetaBeta: Estimate the beta parameter of a beta distribution

Description Usage Arguments Value Author(s) Examples

View source: R/methylInheritanceSimInternalMethods.R

Description

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

Usage

1
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

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

belleau/methylInheritanceSim documentation built on April 1, 2020, 2:43 p.m.