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
difficult question, I don't remember. The use case that I, most likely, looked at is estimating the parameters of a distribution that has fixed parameters and no exog, something similar to scipy distribution fit method, e.g. estimate the parameters of a mixture distribution by MLE.
I don't see any change in 1434 that would affect this. (maybe I never committed that part)
So this issue still open.
nobs and df_resid: besides making summary more robust to nan and float, df_resid and nobs should be properly defined also in this case
df_resid is also still required for t_test (even when it's not used)
GenericLikelihoodModelResults checks for existence of df_model, but the model initialize sets df_resid to nan if exog is None.
if hasattr(model, 'df_model'):
self.df_model = model.df_model
else:
self.df_model = len(mlefit.params)
something strange:
I remember the setting of df_resid in GenericLikelihoodModelResults to be more complicated than it is in the current master, e.g. checking for the length of params and adjusting the exog_names parameter names for use in summary xname.
Activity
Padarn commentedon Apr 22, 2014
When does this come up? Do you have an example case?
josef-pkt commentedon Apr 22, 2014
difficult question, I don't remember. The use case that I, most likely, looked at is estimating the parameters of a distribution that has fixed parameters and no exog, something similar to scipy distribution
fitmethod, e.g. estimate the parameters of a mixture distribution by MLE.I can find or make up an example later today.
Padarn commentedon Apr 23, 2014
Ah okay - I wasn't familiar with this part of the code so couldn't think of a possible case to try. Will try myself if you don't find time.
josef-pkt commentedon Apr 24, 2014
I'm fixing this together with #1434
josef-pkt commentedon May 22, 2018
I don't see any change in 1434 that would affect this. (maybe I never committed that part)
So this issue still open.
nobs and df_resid: besides making summary more robust to nan and float, df_resid and nobs should be properly defined also in this case
df_resid is also still required for t_test (even when it's not used)
josef-pkt commentedon May 22, 2018
BUG for df_resid
GenericLikelihoodModelResults checks for existence of df_model, but the model
initializesets df_resid to nan if exog is None.something strange:
I remember the setting of df_resid in GenericLikelihoodModelResults to be more complicated than it is in the current master, e.g. checking for the length of params and adjusting the exog_names parameter names for use in summary
xname.josef-pkt commentedon Jun 12, 2021
I'm closing this
bootstrap with
exog=Noneworks in #7488 (after I fix init_keys to recreate model, no exog related problems)res,summary() also works
df_resid, df_model look fine but I haven't investigated much
(only aic based on df_modelwc was wrong without k_constant, but I fix that also in #7488)