RE: st: Ranksum (Wilcoxon) test: p-value not saved?

 From "Herve STOLOWY" <[email protected]> To <[email protected]> Subject RE: st: Ranksum (Wilcoxon) test: p-value not saved? Date Sat, 18 Dec 2004 22:23:59 +0100

```Dear Nick:

Thanks again for your help. It worked perfectly. This is my final
coding.

statsmat lev2, s(N mean sd) by(format_bs) mat(mat1)
makematrix mat2, from(r(z) 2*normprob(-abs(r(z)))) label : ranksum lev2,
by(format_bs)
matrix mat3=mat2'
matrix mat4 = mat1, mat3
matrix colnames mat4 = "Number of observations" Mean "Standard
deviation" "Mann-Whitney U-test"
matrix list mat4
mat2txt, matrix(mat4) saving(univariate_bs) replace

Best regards

Herv�

***********************************************************
HEC Paris
D�partement Comptabilit� Contr�le de gestion / Dept of Accounting and
Management Control
1, rue de la Liberation
78351 - Jouy-en-Josas
France
Tel: +33 1 39 67 94 42
Fax: +33 1 39 67 70 86
[email protected]
http://campus.hec.fr/profs/stolowy/perso/home.htm
>>> [email protected] 12/18/04 6:27 PM >>>
There is a good reason for this. The
P-value is calculated internally
as 2 * normprob(-abs(`z')) where `z'
is the statistic that is reported as r(z).
That is, the mapping is one to one, and
you lose no information from not having
the P-value returned as well.

So after -ranksum- you just need to calculate
2 * normprob(-abs(r(z))).

Nick
[email protected]

Herve STOLOWY

> I perform a ranksum test (i.e. Wilcoxon - Mann-Whitney U test). With
> -return list-, I get the saved results. Unfortunately, I see
> the (z) but
> not the Prob(z) in this list.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
```