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/REF: GenericLikelihoodResults Mixin uses df_model, df_modelwc for aic #7493
Activity
josef-pkt commentedon Jun 8, 2021
I guess,
results.hasconstwas a workaround for some models. GenericLikelihoodResults checksmodel.k_constantI guess that some parts of the ResultsMixin are older than the previous changes to df handling in GenericLikelihoodResults
BUG/REF/TST: fix generic df_modelwc statsmodels#7493, DRY unit tests …
josef-pkt commentedon Jun 11, 2021
quick fix in #7488 df_modelwc dhecks now results.k_constant first
I guess k_constant is a newer version of hasconst. but k_constant is defined in model and copied to results if it is in model.
bashtage commentedon Jul 30, 2026
Fixed by PR #7488 / commit df5896f: statsmodels/base/model.py now checks k_constant first, falling back to hasconst. Closing as fixed.