poissonconsulting / extras

An R package of helper functions for Bayesian analyses
https://poissonconsulting.github.io/extras/
Other
9 stars 2 forks source link

Beta-binomial negative deviance #38

Closed nehill197 closed 1 year ago

nehill197 commented 1 year ago

Beta-binomial deviance sometimes negative because saturated log-likelihood is smaller than the model log-likelihood.

dev_beta_binom(x = 1, size = 5, prob = 0.3, theta = 0.5)
sebdalgarno commented 1 year ago

perhaps worth seeing whether the other re-parameterization method has the same issues?

alpha = prob * theta and beta = (1 - prob) * theta

that one is used in the brms package

joethorley commented 1 year ago

done