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
AFAICS, GMM does not have param_names and uses exog_names in summary() which does not have the correct length. summary table is truncated at the length of provided names
GMM doesn't seem to have unit tests for this case (xnames to short)
adding assert_equal(len(summ.tables[1]), len(res1.params) + 1) to test_gmm_poisson.CheckGMM doesn't fail, i.e. correct number or params in summary params_table
test_gmm.py has smoke tests for summary in some classes, but not in CheckGMM
_fix_param_names(self, params, param_names=None) does not correctly handle the case where len(xnames) < len(params), AFAICS
maybe we can use some pattern from GenericLikelihoodResults, which I fixed later than the code here, .IIRC
Needs another example as a test case, e.g. gamma or the one above, for which I have examples in notebooks.
Activity
josef-pkt commentedon Mar 30, 2018
GMM doesn't seem to have unit tests for this case (xnames to short)
adding
assert_equal(len(summ.tables[1]), len(res1.params) + 1)to test_gmm_poisson.CheckGMM doesn't fail, i.e. correct number or params in summary params_tabletest_gmm.pyhas smoke tests for summary in some classes, but not in CheckGMM_fix_param_names(self, params, param_names=None)does not correctly handle the case where len(xnames) < len(params), AFAICSmaybe we can use some pattern from GenericLikelihoodResults, which I fixed later than the code here, .IIRC
Needs another example as a test case, e.g. gamma or the one above, for which I have examples in notebooks.
josef-pkt commentedon Apr 5, 2018
according to test coverage, the incorrect if else branch is not used
https://coveralls.io/builds/16330861/source?filename=statsmodels%2Fsandbox%2Fregression%2Fgmm.py#L532
I will replace the xnames in this case by generic names.
BUG/REF: GMM fix exog_names, summary closes statsmodels#4340
josef-pkt commentedon Apr 5, 2018
ok, just found a duplicate, that I already opened a few years ago
#1465