Skip to content

Commit

Permalink
Merge pull request #6957 from bashtage/glm-null
Browse files Browse the repository at this point in the history
BUG: Fix check for offset_exposure in null
  • Loading branch information
bashtage committed Aug 7, 2020
2 parents b793159 + 5b61805 commit 29c9603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statsmodels/genmod/generalized_linear_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,7 @@ def null(self):

kwargs = model._get_init_kwds()
kwargs.pop('family')
if hasattr(self, '_offset_exposure'):
if hasattr(self.model, '_offset_exposure'):
return GLM(endog, exog, family=self.family,
**kwargs).fit().fittedvalues
else:
Expand Down

0 comments on commit 29c9603

Please sign in to comment.