beta_binomial() defines a one-response denominator-aware distribution for
successes out of known trials. Use it with two-column count responses such as
bf(cbind(successes, failures) ~ x, sigma ~ z), where
trials_i = successes_i + failures_i.
Details
The implemented contract is logit(mu) = eta_mu,
with optional ordinary unlabelled mu random intercepts,
log(sigma) = eta_sigma, and internal beta precision
phi = 1 / sigma^2. Conditional on a latent success probability
p_i ~ Beta(mu_i * phi_i, (1 - mu_i) * phi_i), the observed successes
follow Binomial(trials_i, p_i). Larger sigma means more extra-binomial
variation around the mean probability.
The first mixed-model slice supports ordinary mu random intercepts and
independent numeric slopes such as
bf(cbind(successes, failures) ~ x + (1 | id) + (0 + x | id), sigma ~ z). Correlated slopes, labelled covariance blocks, sigma random
effects, zoi/coi, meta_V(V = V), phylogenetic or spatial terms,
bivariate beta-binomial models, and a successes/trials response alias are
planned but not implemented.