[R] one sample Wilcoxon test using 'coin'

Holger Taschenberger Holger.Taschenberger at mpi-bpc.mpg.de
Mon Oct 31 17:22:20 CET 2011


On Mon, 31 Oct 2011 09:14:15 -0700 (PDT)
Mark Lamias <mlamias at yahoo.com> wrote:

> The wilcoxon test in coin are meant only for "Testing the equality of
> the distributions of a numeric response in *two or more* independent
> groups against shift alternatives" whereas the wilcoxon test in the
> base pacakge "Performs *one-* and two-sample Wilcoxon tests on
> vectors of data; the latter is also known as ‘Mann-Whitney’ test."
>   So, wilcoxon_test and wilcoxonsign_test in coin will not work for
> one-sample.  Why not just use wilcox.test?
>  
> Mark J. Lamias
> 
Because the exact 'wilcox.test' can't handle ties in the ranks. But
'coin' can.
I suspect 'coin' can also perform a one sample wilcoxon test against a
chosen mu. I just don't what the correct syntax would be.

--Holger



More information about the R-help mailing list