Re: [R] median of two groups

2010-05-12 Thread cheba meier
-project.org; Thomas Lumley Subject: Re: [R] median of two groups Thank you very much for that. What is then if I have unpaired and unbalanced samples? Best regards, Cheba 2010/5/7 Bert Gunter gunter.ber...@gene.com Perhaps this might help clarify: sample A: 10 15 20

Re: [R] median of two groups

2010-05-11 Thread Greg Snow
-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of cheba meier Sent: Monday, May 10, 2010 3:02 AM To: Bert Gunter Cc: R-help@r-project.org; Thomas Lumley Subject: Re: [R] median of two groups Thank you very much for that. What is then if I have unpaired and unbalanced

Re: [R] median of two groups

2010-05-10 Thread cheba meier
- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of cheba meier Sent: Friday, May 07, 2010 12:46 PM To: Joris Meys Cc: R-help@r-project.org; Thomas Lumley Subject: Re: [R] median of two groups Hi all, Thank you for your reply. if done properly! What does

Re: [R] median of two groups

2010-05-07 Thread cheba meier
Dear Thomas, I have been running simulations in order me to understand this problem! I have found something online where the absolute median difference is computed and permutations are ran to compute a p-value. Is such a test (if I can call it a test) tests the null hypothesis that median group 1

Re: [R] median of two groups

2010-05-07 Thread Joris Meys
That's a robust way of obtaining a p-value, and can be classified as a test. The important trick here is to take into account that you have two tails in a distribution. If the p-value is calculated taking both tails into account, then it indeed tests the null hypothesis that median group1 - median

Re: [R] median of two groups

2010-05-07 Thread Greg Snow
Subject: Re: [R] median of two groups Dear Thomas, I have been running simulations in order me to understand this problem! I have found something online where the absolute median difference is computed and permutations are ran to compute a p-value. Is such a test (if I can call it a test

Re: [R] median of two groups

2010-05-07 Thread Thomas Lumley
On Fri, 7 May 2010, cheba meier wrote: Dear Thomas, I have been running simulations in order me to understand this problem! I have found something online where the absolute median difference is computed and permutations are ran to compute a p-value. Is such a test (if I can call it a test)

Re: [R] median of two groups

2010-05-07 Thread Joris Meys
depends on how you interprete absolute median difference. Is that the absolute difference of the medians, or the median of the absolute differences. Probably the latter one, so you would be right. If it's the former one, then it is testing whether the difference of the medians is zero. Cheers

Re: [R] median of two groups

2010-05-07 Thread cheba meier
Hi all, Thank you for your reply. if done properly! What does this mean? The R-code I have is using the R-function sample without replacement. Am I doing this properly? median of the differences is zero! Does this mean if I run 1000 permutation and for each permutation I compute the median

Re: [R] median of two groups

2010-05-07 Thread Joris Meys
On Fri, May 7, 2010 at 9:45 PM, cheba meier cheba.me...@googlemail.comwrote: Hi all, Thank you for your reply. if done properly! What does this mean? The R-code I have is using the R-function sample without replacement. Am I doing this properly? median of the differences is zero! This is

Re: [R] median of two groups

2010-05-07 Thread Bert Gunter
-project.org; Thomas Lumley Subject: Re: [R] median of two groups Hi all, Thank you for your reply. if done properly! What does this mean? The R-code I have is using the R-function sample without replacement. Am I doing this properly? median of the differences is zero! Does this mean if I run 1000

Re: [R] median of two groups

2010-04-07 Thread cheba meier
Dear Thomas, Thank you very much for your answer! Can I use your function in my analysis? The wilcox.test() tests the differences in average ranks (H0: F(X)=F(Y)), why then do people in many studies compare t.test() with wilcox.test()? This makes sometime people like me a bit confused!

Re: [R] median of two groups

2010-04-07 Thread Thomas Lumley
On Wed, 7 Apr 2010, cheba meier wrote: Dear Thomas, Thank you very much for your answer! Can I use your function in my analysis? Sure. The wilcox.test() tests the differences in average ranks (H0: F(X)=F(Y)), why then do peopleĀ  in many studies compare t.test() with wilcox.test()? The

[R] median of two groups

2010-04-06 Thread cheba meier
Dear all, What is the right test to test whether the median of two groups are statistically significant? Is it the wilcox.test, mood.test or the ks.test? In the text book I have got there is explanation for the Wilcoxon (Mann Whitney) test which tests ob the two variable are from the same

Re: [R] median of two groups

2010-04-06 Thread Thomas Lumley
None of them. - mood.test() looks promising until you read the help page and see that it does not do Mood's test for equality of quantiles, it does Mood's test for equality of scale parameters. - wilcox.test() is not a test for equal medians - ks.test() is not a test for equal medians.