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

Output for Wilcoxon signed-rank test correct? #17

Closed
SteveRxD opened this issue Apr 17, 2019 · 2 comments
Closed

Output for Wilcoxon signed-rank test correct? #17

SteveRxD opened this issue Apr 17, 2019 · 2 comments

Comments

@SteveRxD
Copy link

SteveRxD commented Apr 17, 2019

Hi, thanks for this great resource! I'm working through the book now.

Can I confirm that the p-values published in the table of section '4.1.3 R code: Wilcoxon signed-rank test' are correct? I get different p-values for both the Wilcoxon test and the linear model using signed ranks (0.2628 and 02650 respectively). I have been able to replicate all other tests in the book so far using the toy data set. Thanks.

@lindeloev
Copy link
Owner

They are not completely identical, as are none of the non-parametric "equivalents". In your case, p is off by 0.0022. This, you can also see in the website version.

Or are you pointing to a different issue?

@SteveRxD
Copy link
Author

My apologies, I see the problem - it was to do with the toy data. When reproducing your work I created the toy data sets in a different order (x, y, y2 instead of y, x, y2). When I ran it again I get the same results as you.

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