Skip to content
Prev 324625 / 398503 Next

wilcox_test function in coin package

Janh,

Janh Anni skrev 2013-06-01 19:47:
Ties handling was mainly a problem back in the day when recursion 
formulas were used for the computation of exact p-values.  (When no ties 
are present, the form of the exact null distribution of the Wilcoxon 
rank-sum statistic depends only on the total number of observations in 
the two groups.)
Adjusting the variance only matters when approximating the exact 
distribution with its asymptotic Gaussian distribution.  And only when 
at least one tie is shared between the two groups.  And yes, the 
standardized statistic in 'coin' accounts for ties.  If ties are 
present, why would you want to know the unadjusted p-value?
> of them all?  Thanks again

If this was true, the 'wilcox.exact' function would be completely 
pointless since 'wilcox.test' just falls back on the asymptotic 
approximation when ties are present.

Software like 'StatXact', 'exactRankTests', and 'coin' use algorithms 
that compute the exact p-value for any ties configuration.  Take a look 
at Torsten Hothorn's "On Exact Rank Tests in R" article from the very 
first issue of R News http://www.r-project.org/doc/Rnews/Rnews_2001-1.pdf.


Henric