You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
REF/ENH: GLM-Binomial/Bernoulli count versus probability #2698
I just saw that GLM binomial fittedvalues returns probabilities not counts.
Binomial is actually Bernoulli with frequency weights.
The difference will be for prediction and prediction confidence intervals and margins depending on whether we want results for proportions or counts.
possible solution: add frequency weights explicitly and introduce different "Binomial/Bernoulli" families, one for count data and one for proportion results.
alternative (maybe easier): add count option to predict and related
If we allow generic multiplicative exposure, then I think it is equivalent to specifying a frequency weight in prediction for general GLM.
Activity
josef-pkt commentedon Nov 7, 2015
usecase that I'm looking at right now:
contingency tables with binomial endogenous dimension (Agresti examples)
josef-pkt commentedon Jul 6, 2021
#106 (comment)
I'm adding n_trials to get_distribution, but AFAICS, we don't have the option for predict.
using "non-standard" rates definition in GLM-Binomial will make it more difficult to have diagnostics based on count models.
Note: residuals, e.g. resid_response are defined in terms of counts, i.e. multiplied by n_trials