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

Extend psycho package to include Wilcoxon rank sum test (non-parametric version of t-test) #76

Open
MarkJThomas opened this issue Jul 19, 2018 · 1 comment

Comments

@MarkJThomas
Copy link

Hi all,

I have been using the psycho package to retrieve summary stats and publishable info of the t-test for my manuscripts, I wondered if this can be extended to include the Wilcoxon rank sum test, please?

Many thanks
Mark Thomas

@DominiqueMakowski
Copy link
Member

Wilcoxon's rand sum test is not implemented yet, as I have no experience with it and its reporting. Nevertheless, I believe extending the analyze function to support it could be done quite easily.

As a wilcoxon test belongs to the "htest" class, its method should go in the analyze.htest method.

As you can see in the related file, from line 51 to 71, it takes care of the "correlation" subclass. Below, of the t-test.

Therefore, one could easily add a else if (grepl("Wilcoxon", values$method)) (if there is the word Wilcoxon in the method name), and then add below the specific text formatting code.

@r-sonist Feel free to try implementing it if you want, it could be a useful feature :)

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

No branches or pull requests

2 participants