Skip to content

stats inconsistent test options #847

Open

Description

@josef-pkt

weightstats is growing more options, functions and method.

  • Since I wrote them with different applications in mind, some options still vary across functions.
  • There is also still some duplicate code that should be refactored.
  • across modules the naming for the alternative is not consistent (e.g. 2-sided, two-sided), sometimes allowing aliases
  • ttest use two or three functions, ztest uses only one function for one-sample, two independent samples, and two paired sample.

latest changes are in PR #784
changes and addition for normal distributions where partially based on being able to use them for testing proportion, correlation, and other statistics where we use a normal approximation.

Activity

  1. josef-pkt commented on May 23, 2013

    @josef-pkt
    MemberAuthor

    PR #784 makes "two-sided" the standard name, synonyms/alias "2s", "2-sided" are allowed in some cases.

    make helper function to normalize alternative names, if we want to allow short cuts.

  2. josef-pkt commented on Aug 20, 2020

    @josef-pkt
    MemberAuthor

    found while looking at #4797 (comment)

    naming inconsistency that I just saw:

    • 2 sample comparison in weightstats uses usevar='pooled'
    • I switched to use_var="equal" in oneway
  3. josef-pkt commented on Aug 20, 2020

    @josef-pkt
    MemberAuthor

    choosing the distribution for a test or confint

    in results of models, I used use_t and use_f
    in brunnermunzel, PR #6971, I use use_t, while scipy.stats had a distribution keyword.

    problem in standalone test will be if we allow for other inference, e.g. permutation in brunnermunzel case.

    in proportions and rates we also have "exact", e.g. confint proportion has several options that uses method keyword.

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