ebb_loglik: ebb_loglik.R

View source: R/ebb_loglik.R

ebb_loglikR Documentation

ebb_loglik.R

Description

An internal function only (doesn't do error checking or take care of boundary cases). The log-likelihood (log-PMF) calculation for the Extended Beta-Binomial proposed by Prentice (1986). Takes in a vectorized argument because we apply() it in run_BB_GBJ().

Usage

ebb_loglik(x, d)

Arguments

x

A vector of length 3 with (1) value of outcome (2) mu parameter (3) gamma parameter

d

The number of test stsatistics in the set

Value

log( Pr(V=x[1]) ) where V~EBB(mu,gamma; d)

Examples

ebb_loglik(x=c(1, 0.5, 0.1), d=10)	

GBJ documentation built on May 29, 2024, 1:33 a.m.