Skip to content

summary() params table split conf_int #1492

Closed

Description

@josef-pkt

If the params table is rendered as html, then it doesn't look nice that confidence interval is a single column.

for example
http://nbviewer.ipython.org/github/nipunreddevil/PythonAnalyticsEdge/blob/master/week_2/lecture/baseball.ipynb?create=1

single column conf_int was optimized for string/text printing.
I guess it will also be messed up in Latex.

Activity

  1. added this to the 0.8 milestone on Feb 12, 2015
  2. josef-pkt commented on Feb 12, 2015

    @josef-pkt
    MemberAuthor

    adding prio-high

    I saw a presentation about statsmodels, and the html rendering of confint columns looks bad

  3. kiyoto commented on Jul 12, 2015

    @kiyoto
    Contributor

    How would you render it in HTML? Also, based on my cursory look into iolib/*.py, it's not that easy to switch a cell's representation based on the output format?

  4. josef-pkt commented on Jul 12, 2015

    @josef-pkt
    MemberAuthor

    (I'm trying to catch up with some issues)

    This doesn't require changing the rendering itself because that is handled by SimpleTable.
    The task here is to split the columns into two columns, keeping the numeric formatting, but the header for confidence interval needs to change. The header needs to be split into two corresponding to the two columns. AFAIR, the header was my reason to use a single column, but at the time html view of summary wasn't very popular yet (and I didn't see how bad it looks).

    https://github.com/statsmodels/statsmodels/blob/master/statsmodels/iolib/summary.py#L474
    is making the combined string for lower and upper confidence limite which is further down added to the params_table. There might be other places, that I didn't see right now.

  5. kiyoto commented on Jul 13, 2015

    @kiyoto
    Contributor

    @josef-pkt I see. If we are splitting the header for confint, what should each header say? Will it look decent in the print/text context?

  6. josef-pkt commented on Jul 13, 2015

    @josef-pkt
    MemberAuthor

    I'm not sure about the header, maybe we try the same as what summary2 uses, i.e. [0.025 0.975]
    alpha / 2 and (1 - alpha) / 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions