Skip to content

ENH: weightstats CompareMeans add from_data and summary methods #2569

Closed

Description

@josef-pkt

see http://stackoverflow.com/questions/31768464/confidence-interval-for-t-test-difference-between-means-in-python

to make the interface more convenient in weightstats CompareMeans, we could add from_data and summary methods.

summary could print a summary table (1 row) similar to LikelihoodResults.t_test and Contrast

Note: weightstats CompareMeans was written before Contrast results gained the summary and other enhancements, and we never checked for adding similar improvements.

Activity

  1. added this to the 0.8 milestone on Aug 2, 2015
  2. ValeryTyumen commented on Dec 17, 2015

    @ValeryTyumen
    Contributor

    I would like to do this as my first PR

  3. josef-pkt commented on Dec 17, 2015

    @josef-pkt
    MemberAuthor

    great, thanks

    you can look around in the code to find reusable parts or parts that can be copied. If you need help, just ask.

    see #2725 for a related discussion on adding summary or prints (__repr__ or __str__)

  4. ValeryTyumen commented on Jan 4, 2016

    @ValeryTyumen
    Contributor

    @josef-pkt , I've got some questions.
    As I see, summary in CompareMeans will contain results of t-test and z-test in a format similar to the output of t.test(a,b, paired=TRUE, alt="less") in R. Why is it only one row, maybe bigger? Or it only contains results of one test like in ContrastResults.summary?
    Also a purpose of from_data in CompareMeans is not clear for me. I found the same function only in contingency_tables.py and it constructs contingency tables.

  5. ValeryTyumen commented on Jan 13, 2016

    @ValeryTyumen
    Contributor
  6. MishaVeldhoen commented on Jul 27, 2018

    @MishaVeldhoen

    Seems like this was implemented, and the issue can be closed.

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