ebb_loglik {GBJ} | R 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)
[Package GBJ version 0.5.4 Index]