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 }}
Repository navigation
BUG/ENH: discrete count models, predict default for offset, exposure #4595
It looks like discrete.CountModel.predict doesn't use an appropriate default offset and exposure. when exog is provided.
In contrast, GLM uses scalar defaults that broadcast
elif offset is None:
offset = 0.
currently for discrete.Poisson res.predict(exog[:5])
raises an exception because it uses the model offset and exposure that have a different number of rows
Explicitly specifying it works: res.predict(exog[:5], offset=0, exposure=1
Activity
BUG/ENH/TST: fix count model predict default closes statsmodels#4595
BUG/ENH/TST: fix count model predict default closes statsmodels#4595
BUG/ENH/TST: fix count model predict default closes statsmodels#4595
BUG/ENH/TST: fix count model predict default closes statsmodels#4595
BUG/ENH/TST: fix count model predict default closes statsmodels#4595