Re: [R] Different results on running Wilcoxon Rank Sum test in R and SPSS

2021-01-20 Thread bharat rawlley via R-help
Thank you for your time, Professor John! Much appreciated!  Yours sincerely Bharat Rawlley  Sent from Yahoo Mail on Android On Thu, 21 Jan 2021 at 4:40 AM, John Fox wrote: Dear Bharat Rawlley, On 2021-01-20 1:45 p.m., bharat rawlley via R-help wrote: >  Dear Professor John, > Thank you

Re: [R] Different results on running Wilcoxon Rank Sum test in R and SPSS

2021-01-20 Thread John Fox
Dear Bharat Rawlley, On 2021-01-20 1:45 p.m., bharat rawlley via R-help wrote: Dear Professor John, Thank you very much for your reply! I agree with you that the non-parametric tests I mentioned in my previous email (Moods median test and Median test) do not make sense in this situation as

Re: [R] Different results on running Wilcoxon Rank Sum test in R and SPSS

2021-01-20 Thread bharat rawlley via R-help
Dear Professor John,  Thank you very much for your reply!  I agree with you that the non-parametric tests I mentioned in my previous email (Moods median test and Median test) do not make sense in this situation as they treat PFD_n and drug_code as different groups. As you correctly said, I want

Re: [R] Different results on running Wilcoxon Rank Sum test in R and SPSS

2021-01-19 Thread John Fox
Dear Bharat Rawlley, What you tried to do appears to be nonsense. That is, you're treating PFD_n and drug_code as if they were scores for two different groups. I assume that what you really want to do is to treat PFD_n as a vector of scores and drug_code as defining two groups. If that's

Re: [R] Different results on running Wilcoxon Rank Sum test in R and SPSS

2021-01-19 Thread bharat rawlley via R-help
Thank you for the reply and suggestion, Michael!  I used dput() and this is the output I can share with you. Simply explained, I have 3 columns namely, drug_code, freq4w_n and PFD_n. Each column has 132 values (including NA). The problem with the Wilcoxon Rank Sum test has been described in my

Re: [R] Different results on running Wilcoxon Rank Sum test in R and SPSS

2021-01-19 Thread Michael Dewey
Unfortunately your data did not come through. Try using dput() and then pasting that into the body of your e-mail message. On 18/01/2021 17:26, bharat rawlley via R-help wrote: Hello, On running the Wilcoxon Rank Sum test in R and SPSS, I am getting the following discrepancies which I am

[R] Different results on running Wilcoxon Rank Sum test in R and SPSS

2021-01-18 Thread bharat rawlley via R-help
Hello,  On running the Wilcoxon Rank Sum test in R and SPSS, I am getting the following discrepancies which I am unable to explain. Q1 In the attached data set, I was trying to compare freq4w_n in those with drug_code 0 vs 1. SPSS gives a P value 0.031 vs R gives a P value 0.001779.  The code I