[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
Kit Baum <baum@bc.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: kruskal-wallis test |

Date |
Sun, 6 Nov 2005 09:40:15 -0500 |

Herve S. says

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)

(snip)

This code was written by another Herve, Herve Caci, back in 1999 for Stata 5.0. Back then there was not the simple means of returning items in a return list (one could return macros in S_1, S_2, etc. and it does return a few--presumably not the ones you need).

Make a copy of kwallis2.ado (kwallis3.ado?), change the version number to something more recent (e.g. version 8.2), change the program define line to read "program define kwallis3, rclass" and see if the routine still runs and generates the same results. If so, add return statements for each item you would like to use after the routine runs. E.g. `Mean'`[`i'] (which is the i'th observation of a tempvar named `Mean') is the rank mean for the i-th group. Put it in a scalar and return it, e.g.

return scalar mean1 = `Mean'[1]

etc.

These items will then show up in your return list.

Kit Baum, Boston College Economics

http://ideas.repec.org/e/pba1.html

*

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

- Prev by Date:
**RE: st: how to pool prevalences** - Next by Date:
**Re: st: how to pool prevalences** - Previous by thread:
**st: Output of Kruskal - Wallis test [Stata 9.1]** - Next by thread:
**st: RE: kruskal-wallis test** - Index(es):

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