Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Output of Kruskal - Wallis test [Stata 9.1]


From   "Herve STOLOWY" <[email protected]>
To   <[email protected]>
Subject   st: Output of Kruskal - Wallis test [Stata 9.1]
Date   Sun, 06 Nov 2005 14:35:08 +0100

Dear All:

I run the Kruskal - Wallis tests of differences between groups. (In reality, I use a variation -kwallis2- [donwloadable from ssc] which provides the rank mean as well as the rank sum (-kwallis- only provides the ranksum).

kwallis2 index2, by(sodas3cl)

One-way analysis of variance by ranks (Kruskal-Wallis Test)

sodas3cl Obs   RankSum  RankMean 
--------------------------------
  1       40   1027.50     25.69
  2       32   2529.00     79.03
  3       28   1493.50     53.34

Chi-squared (uncorrected for ties) =    60.477 with    2 d.f. (p = 0.00010)
Chi-squared (corrected for ties)   =    61.365 with    2 d.f. (p = 0.00010)

I would like to know if there is an easy way to get the output (especially the rank mean and the p-value of the chi-square) in a tab-delmimitated file (beside the solution of cut and paste to excel).

When I type -return list-, I get almost nothing: 

return list

scalars:
                 r(N) =  0

So, I cannot use the usual tools (such as -makematrix-). 

Is there another command which would produce the rank mean?

Best regards

Herv� Stolowy




***********************************************************
Professeur/Professor
Coordinateur du D�partement/Head of Department
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

*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index