bbll: Beta-binomial log likelihood

Description Usage Arguments Value Examples

View source: R/likelihoods.R

Description

Beta-binomial log likelihood

Usage

1
bbll(par, n, k)

Arguments

par

vector of beta-binomial parameters par[1] = logit(a / (a+b)), par[2] = log(a+b).

n

numeric integer, the total trials. Can be a vector.

k

numeric integer, the number of successes. Can be a vector.

Value

vector of beta-binomial log likelihoods for data n,k with parameters par

Examples

1
bbll(c(logit(0.5),log(100)),100,50)

RGLab/MIMOSA2 documentation built on May 9, 2017, 11:01 p.m.