estimate_parameters: Estimate Kimura distribution parameters

View source: R/estimate-pars.R

estimate_parametersR Documentation

Estimate Kimura distribution parameters

Description

Given a vector of heteroplasmy fractions, estimate the Kimura distribution parameters.

Usage

estimate_parameters(h)

Arguments

h

numeric vector in [0; 1] of heteroplasmy fractions.

Value

A named vector of length two with elements p and b. These are the estimated parameters of a Kimura(p, b) distribution to fit to the data.

Examples

h = stats::runif(10)
estimate_parameters(h)

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