Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Z tests (proportions & means) #297

Open
aurel-p opened this issue Aug 6, 2022 · 1 comment
Open

Add Z tests (proportions & means) #297

aurel-p opened this issue Aug 6, 2022 · 1 comment
Labels
feature request 🚧 New feature or request

Comments

@aurel-p
Copy link

aurel-p commented Aug 6, 2022

Hi,

1. Intro

As mentioned in discussion #296, it would be convenient to have support for both proportion and mean z tests within pingouin.

statsmodels already provides several methods around those tests but in a confused and dispersed way, so you often end up writing some wrapper. Moreover, those methods sometimes have strange signatures, making it not really straightforward to use. A single and richer pandas output would be far more helpful. We are talking about basics here: in my opinion it would strengthen pingouin's position as a user-friendly but powerful and complete statistical package.

2. Ressources

3. Feature

  • proportions_ztest()

    • parameters

      • x1: 2-column array_like, 1st column: number of trials, 2nd column: number of successes
      • x2: same or proportion value
      • alternative
      • paired
      • r
      • confidence
      • method: method for computing confidence interval, ‘newcomb’ (default), ‘wald’, ‘agresti-caffo’, ‘score’
    • returns

      • Z
      • alternative
      • p_val
      • CI95%: diff in proportion
      • cohen-d
      • BF10
      • power
  • means_ztest()

    • parameters
      • x1: array_like
      • x2: same or mean value
      • alternative
      • paired
      • r
      • confidence
    • returns
      • Z
      • alternative
      • p_val
      • CI95%: diff in means
      • cohen-d
      • BF10
      • power

Thanks!
Aurélien

@raphaelvallat raphaelvallat added the feature request 🚧 New feature or request label Aug 10, 2022
@raphaelvallat
Copy link
Owner

Thanks for the detailed feature request @aurel-p! I won't have the time to implement this in the near future but I'll leave this issue open if anyone wants to give it a first go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request 🚧 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants