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

Feature request: add confidence interval to pg.wilcoxon() #153

Open
Tracked by #279
FlorinAndrei opened this issue Jan 17, 2021 · 1 comment
Open
Tracked by #279

Feature request: add confidence interval to pg.wilcoxon() #153

FlorinAndrei opened this issue Jan 17, 2021 · 1 comment
Assignees
Labels
feature request 🚧 New feature or request

Comments

@FlorinAndrei
Copy link

In R, wilcox.test(A, B, paired=T, conf.int=T) also returns a confidence interval for the difference in median values.

I can't seem to find an equivalent with pg.wilcoxon().

@raphaelvallat raphaelvallat self-assigned this Jan 17, 2021
@raphaelvallat raphaelvallat added the feature request 🚧 New feature or request label Jan 17, 2021
@raphaelvallat
Copy link
Owner

Thanks @FlorinAndrei. For reference this is the R source code: https://github.com/SurajGupta/r-source/blob/master/src/library/stats/R/wilcox.test.R

This may prove to be more complicated than adding the confidence parameter to the T-test function, mostly because the pg.wilcoxon function is actually a wrapper around scipy.stats.wilcoxon, and therefore most of the computation are done within SciPy (and Pingouin does not have access to the intermediate steps, just the final output).

I'll try to work on this within the next few months, unless someone else wants to submit a PR.

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