l_bbinom: calculate joint likelihood of allele data

View source: R/distributions.R

l_bbinomR Documentation

calculate joint likelihood of allele data

Description

calculate joint likelihood of allele data

Usage

l_bbinom(AD, DP, alpha, beta)

Arguments

AD

numeric vector Variant allele depth

DP

numeric vector Total allele depth

alpha

numeric Alpha parameter of Beta-Binomial distribution

beta

numeric Beta parameter of Beta-Binomial distribution

Value

numeric Joint log likelihood

Examples

l_bbinom(c(1, 2), c(1, 2), 1, 1)

hahmmr documentation built on Oct. 26, 2023, 1:08 a.m.