lnb: lnb

Description Usage Arguments Value Examples

Description

lnb returns the log likelihood f(x), where x ~ Nb(alpha, beta/(E+beta) )

Usage

1
lnb(x, alpha, beta, E)

Arguments

x

a scalar. A realization from negative binomial distribution.

alpha

shape parameter in gamma distribution

beta

rate parameter in gamma distribution

E

a scalar. Normalizing constant for the observed chain x.

Value

Log likelihood f(x)

Examples

1
2
3
4
5
x <- 50
alpha <- 1
beta <- 0.1
E <- 10
lnb(x, alpha, beta, E)

shimlab/riboHMM2 documentation built on May 19, 2019, 6:23 p.m.