Skip to content

BUG summary2 doesn't propagate/use use_t #1828

Closed

Description

@josef-pkt

I'm not sure yet how this works, but I don't see how use_t ("t" or "z") is propagated or used in summary2

found while fixing #1812

It's a bug. See discrete_choice_example.py
print(affair_mod.summary2()) show "t" instead of "z"

Activity

  1. changed the title [-]summary2 doesn't propagate/use use_t[/-] [+]BUG summary2 doesn't propagate/use use_t[/+] on Jul 16, 2014
  2. added a commit that references this issue on Jul 16, 2014
    4b9f7ee
  3. vincentarelbundock commented on Jul 16, 2014

    @vincentarelbundock

    The coef/se/t/ci panel of your ascii summary is a dataframe that is (typically) constructed using a helper function. You need to make sure that your result class' summary method passes the use_t argument down to the summary_params function:

    https://github.com/statsmodels/statsmodels/blob/master/statsmodels/iolib/summary2.py#L300

  4. vincentarelbundock commented on Jul 16, 2014

    @vincentarelbundock

    But now that I look at summary_params(), I expect you might want it to do something else...

  5. josef-pkt commented on Jul 16, 2014

    @josef-pkt
    MemberAuthor

    @vincentarelbundock I changed it here 4b9f7ee
    In add_base

  6. vincentarelbundock commented on Jul 16, 2014

    @vincentarelbundock

    Cool. I've been debating (internally, in my head) whether having add_base is a good idea. Seems like a wrapper around few things. Might be better to just do it explicitly. Oh well.

  7. josef-pkt commented on Jul 16, 2014

    @josef-pkt
    MemberAuthor

    It doesn't really matter for this where we do define the argument for use_t.

    I'm reusing the paramstable for other things like t_test where we need the use_t option. For the results summary I want to start to hardcore the use of the use_t results attribute.

  8. vincentarelbundock commented on Jul 16, 2014

    @vincentarelbundock

    Good idea.

  9. added a commit that references this issue on Sep 2, 2014
    de80a69
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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions