Skip to content

medians in Wilcoxon disagree with median function

5 messages · Graham Smith, Brian Ripley, David Winsemius

#
Where did you get the idea that the location estimate in a 2-sample 
Wilcoxon test is the difference in medians?  (It is a common 
misconception, but not I believe to be found in R.  The estimate is 
the median of differences, not the difference of medians: and the test 
is not of a difference of population medians either, unless the two 
populations differ only in location.)
On Sun, 30 Jan 2011, Graham Smith wrote:

            

  
    
#
On Jan 30, 2011, at 9:28 AM, Graham Smith wrote:

            
Or exposing a failure to read the help page.
The Wilcoxon two sample test is not a test of equality of medians.  
Read the Details help page. The estimated location is a pseudomedian.

 > plot(density(pipwtCount))
 > plot(density(pipwdCount, na.rm=TRUE))

Both are highly right-skewed.