Skip to content

BUG: MNLogit margins fix summary and summary_frame - #3311

Merged
josef-pkt merged 1 commit into
statsmodels:masterfrom
josef-pkt:mnlogit_margin_frame
Dec 9, 2016
Merged

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

Conversation

@josef-pkt

@josef-pkt josef-pkt commented Dec 9, 2016 •

Copy link
Copy Markdown
Member

closes #3309

margins for MNLogit:

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.03%) to 87.995% when pulling b82b3ae on josef-pkt:mnlogit_margin_frame into 9ee558b on statsmodels:master.

names=['endog', 'exog'])
else:
table = np.column_stack((self.margeff, self.margeff_se, self.tvalues,
self.pvalues, self.conf_int(alpha)[:, 0, :]))

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BUG: the slicing here is left over from experimenting.
no error raise in unit tests!

@josef-pkt

Copy link
Copy Markdown
Member Author

needs more unit tests. I did introduce a new bug, and it wasn't detected by test run. test run are as green as they get
(but I cannot run the unit test locally right now)

@cpbl Do you want to have a brief look at this?
I'm planning on finishing up and merging today

@josef-pkt
josef-pkt force-pushed the mnlogit_margin_frame branch from b82b3ae to 188c874 Compare December 9, 2016 16:00
@josef-pkt

Copy link
Copy Markdown
Member Author

commit amended and force pushed

@josef-pkt
josef-pkt force-pushed the mnlogit_margin_frame branch from 188c874 to b12e215 Compare December 9, 2016 16:59
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.03%) to 87.999% when pulling b12e215 on josef-pkt:mnlogit_margin_frame into 9ee558b on statsmodels:master.

@josef-pkt

Copy link
Copy Markdown
Member Author

ready to merge, AFAICS

@cpbl

cpbl commented Dec 9, 2016

Copy link
Copy Markdown

I think I have now managed to try your code and the result looks perfect to me.
Thanks again @josef-pkt

@josef-pkt
josef-pkt merged commit 1223724 into statsmodels:master Dec 9, 2016
@josef-pkt

Copy link
Copy Markdown
Member Author

@cpbl Thanks for the report and checking

merged

@josef-pkt josef-pkt mentioned this pull request Dec 20, 2016
4 of 28 tasks
TomAugspurger pushed a commit to TomAugspurger/statsmodels that referenced this pull request Feb 2, 2017
BUG: MNLogit margins fix summary and summary_frame
(cherry picked from commit 1223724)
TomAugspurger pushed a commit to TomAugspurger/statsmodels that referenced this pull request Feb 2, 2017
BUG: MNLogit margins fix summary and summary_frame
(cherry picked from commit 1223724)
TomAugspurger pushed a commit to TomAugspurger/statsmodels that referenced this pull request Feb 2, 2017
BUG: MNLogit margins fix summary and summary_frame
(cherry picked from commit 1223724)
@josef-pkt
josef-pkt deleted the mnlogit_margin_frame branch June 2, 2017 16:30
@josef-pkt josef-pkt added this to the 0.8 milestone Apr 27, 2018
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.

DiscreteMargins.summary_frame() fails with *** ValueError: all the input arrays must have same number of dimensions

3 participants