[R] Need your help in calculating the p-value

Christophe Pallier pallier at lscp.ehess.fr
Wed Feb 23 17:09:51 CET 2005



Latha Raja wrote:

>Hi,
>
>I am using R to perform wilcox.test and wondering if you know how the p-value in wilcox.test is calculated?
>  
>
You can get the source code of the wilcox.test function:

 > methods(wilcox.test)
[1] wilcox.test.default* wilcox.test.formula*

    Non-visible functions are asterisked
 > getAnywhere(wilcox.test.default)

...

You will see that it uses 'psignrank' (for the one sample case).


Christophe Pallier
www.pallier.org




More information about the R-help mailing list