Grouped-binomial logistic regression (source code)

= Grouped-binomial logistic regression

For independent grouped counts $Y_i\sim\operatorname{Bin}(n_i,p_i)$, grouped-binomial logistic regression specifies
$$
\log\frac{p_i}{1-p_i}=x_i^T\beta.
$$
Fitting the proportions $Y_i/n_i$ with binomial weights $n_i$ gives the same likelihood.