I have grouped binomial outcomes `r_i` out of `n_i` trials, for `i = 1, ..., N`, and I want to fit a hierarchical logistic model with group-specific log-odds.

My model is:
`r_i ~ Binomial(n_i, p_i), for i = 1, ..., N,`
`logit(p_i) = b_i, for i = 1, ..., N,`
`b_i ~ Normal(mu, sigma), for i = 1, ..., N,`
`mu ~ Normal(0, 1000),`
`sigma ~ HalfNormal(0, 1),`
`sigmasq = sigma^2.`

Here:
`r_i` is the observed number of successes in group i,
`n_i` is the observed number of trials in group i,
`p_i` is the success probability in group i,
`b_i` is the group-specific log-odds of success,
`mu` is the population mean of the group-specific log-odds,
`sigmasq` is the population variance of the group-specific log-odds,
`sigma` is the corresponding standard deviation,
`N` is the number of groups.
