Skip to content

BUG/REF: GMM fix exog_names, summary - #4428

Merged
josef-pkt merged 1 commit into
statsmodels:masterfrom
josef-pkt:bug_gmm_xnmaes
Apr 5, 2018
Merged

josef-pkt merged 1 commit into
statsmodels:masterfrom
josef-pkt:bug_gmm_xnmaes

Conversation

@josef-pkt

Copy link
Copy Markdown
Member

closes #4340

bug fix with a bit of refactoring/enhancements

  • fixes the exog_names in GMM, use generic names if xnames from data too short
  • also adds a new method set_param_names for users to override the default names.
    currently only in GMM class, but we might want to have something like this more generally.
  • also summary summary_params raises now an exception if params and exog_names have a length mismatch, instead of silently truncating the params tabel

I opened #4426 for more general param_names/xnames/exog_names inconsistencies

@coveralls

coveralls commented Apr 5, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.01%) to 82.694% when pulling 52465a6 on josef-pkt:bug_gmm_xnmaes into 5a01211 on statsmodels:master.

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #4428 into master will increase coverage by 0.01%.
The diff coverage is 86.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4428      +/-   ##
==========================================
+ Coverage   80.04%   80.06%   +0.01%     
==========================================
  Files         560      560              
  Lines       84323    84364      +41     
  Branches     9554     9559       +5     
==========================================
+ Hits        67498    67544      +46     
+ Misses      14601    14599       -2     
+ Partials     2224     2221       -3
Impacted Files Coverage Δ
statsmodels/iolib/summary.py 54.16% <0%> (-0.38%) ⬇️
statsmodels/sandbox/regression/tests/test_gmm.py 98.84% <100%> (+0.08%) ⬆️
...odels/sandbox/regression/tests/test_gmm_poisson.py 95.19% <100%> (+0.02%) ⬆️
statsmodels/sandbox/regression/gmm.py 61.47% <50%> (+2.01%) ⬆️
statsmodels/stats/descriptivestats.py 24.13% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5a01211...52465a6. Read the comment docs.

@josef-pkt

Copy link
Copy Markdown
Member Author

all green, merging

@josef-pkt
josef-pkt merged commit e614a42 into statsmodels:master Apr 5, 2018
@josef-pkt

Copy link
Copy Markdown
Member Author

#1465 duplicate of #4340 with some older discussion about xname handling.

@josef-pkt josef-pkt added this to the 0.9 milestone Apr 5, 2018
@josef-pkt
josef-pkt deleted the bug_gmm_xnmaes branch April 18, 2018 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: GMM summary has incorrect param_names

3 participants