diff --git a/statsmodels/base/model.py b/statsmodels/base/model.py index 9ec656552c9..03ae9b63349 100644 --- a/statsmodels/base/model.py +++ b/statsmodels/base/model.py @@ -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? @@ -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: