Skip to content

Split the conf. int. cells for summary method - #2543

Merged
josef-pkt merged 3 commits into
statsmodels:masterfrom
kiyoto:summary_table_GH1492
Jul 18, 2015
Merged

josef-pkt merged 3 commits into
statsmodels:masterfrom
kiyoto:summary_table_GH1492

Conversation

@kiyoto

@kiyoto kiyoto commented Jul 16, 2015

Copy link
Copy Markdown
Contributor

closes #1492

Comment thread statsmodels/iolib/summary.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can this and the above be replaced by something like the case for tvalues
["%#6.3f" % (confint[i,0]) for i in exog_idx], ?

my guess, but I don't remember, is that all the min, max above was only necessary because there were two values in a column

@josef-pkt

Copy link
Copy Markdown
Member

Based on the TravisCI test failures, we have two unit tests that verify the content of the results of summary , which will need to be adjusted when the results here look good.

Comment thread statsmodels/iolib/tableformatting.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

if this is the format used for the params table, then I think it will need one extra value, i.e. add an additional "%12s"

@kiyoto

kiyoto commented Jul 17, 2015

Copy link
Copy Markdown
Contributor Author

@josef-pkt

  1. I decided to use forg to format the lower and upper values for CI in the summary method. This is because these values can take a wide range of values and forg seems to be the preferred method.
  2. I also updated the tests. They should be passing now.

@josef-pkt

Copy link
Copy Markdown
Member

Looks good, Updating the unit tests gives a nice diff for the changes in formatting.

I think we can merge this for 0.7. I assume users don't check for or rely on formatting details.

@josef-pkt

Copy link
Copy Markdown
Member

(I'm not a huge fan of just having the numbers in the header instead of something with "ci", but I don't have an alternative.)

@josef-pkt josef-pkt added this to the 0.7 milestone Jul 17, 2015
@josef-pkt

Copy link
Copy Markdown
Member

I sent a message to the mailing list and will merge tonight if nobody complains.

Thanks @kiyoto

josef-pkt added a commit that referenced this pull request Jul 18, 2015
REF: Split the conf. int. cells for summary method
@josef-pkt
josef-pkt merged commit baa4cb7 into statsmodels:master Jul 18, 2015
@josef-pkt

Copy link
Copy Markdown
Member

merged

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.

summary() params table split conf_int

2 participants