Skip to content

Commit

Permalink
BUG: GenericLikelihoodModel propagate hasconst see #7049
Browse files Browse the repository at this point in the history
  • Loading branch information
josef-pkt committed Sep 21, 2020
1 parent a1fb8c2 commit eeb1eb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion statsmodels/base/model.py
Expand Up @@ -789,6 +789,7 @@ def __init__(self, endog, exog=None, loglike=None, score=None,
if hessian is not None:
self.hessian = hessian

hasconst = kwds.pop("hasconst", None)
self.__dict__.update(kwds)

# TODO: data structures?
Expand All @@ -797,7 +798,8 @@ def __init__(self, endog, exog=None, loglike=None, score=None,
# self.df_model = 9999
# somewhere: CacheWriteWarning: 'df_model' cannot be overwritten
super(GenericLikelihoodModel, self).__init__(endog, exog,
missing=missing)
missing=missing,
hasconst=hasconst)

# this will not work for ru2nmnl, maybe np.ndim of a dict?
if exog is not None:
Expand Down

0 comments on commit eeb1eb2

Please sign in to comment.