pkimura: The Kimura distribution

View source: R/kimura-distribution.R

pkimuraR Documentation

The Kimura distribution

Description

Estimate the Kimura(p, b) cumulative distribution function.

Usage

pkimura(x, p, b)

Arguments

x

numeric vector of values in [0; 1].

p

number in (0; 1): initial heteroplasmy.

b

number in (0; 1): drift parameter.

Value

The cumulative distribution function of Kimura(p, b), evaluated at x. Note there is a fixed probability at both extremes of the distribution. the distribution is estimated by evaluating dkimura(p, b) at regular intervals of length 1e-4 and applying the trapezoidal rule.

References

Wonnapinij, Passorn, Patrick F. Chinnery, and David C. Samuels. "The distribution of mitochondrial DNA heteroplasmy due to random genetic drift." The American Journal of Human Genetics 83.5 (2008): 582-593.

Examples

pkimura(c(0, 0.2, 0.3), 0.3, 0.5)

lbozhilova/kimura documentation built on May 7, 2023, 12:07 p.m.