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

st: RE: save p-values from Kruskal-Wallis-test


From   "Kieran McCaul" <K.McCaul@curtin.edu.au>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: save p-values from Kruskal-Wallis-test
Date   Wed, 1 Jun 2005 16:44:10 +0800

return list

shows that the chi2 value and the degrees of freedon are saved in r(df) and r(chi2)

So the p-value is chi2tail(`r(df)',`r(chi2)')



-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of BBS
Querschnittsprojekt: Gerhard Schön
Sent: Wednesday, 1 June 2005 3:57 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: save p-values from Kruskal-Wallis-test


Dear all,

I have to save p-values from a Kruskal-Wallis-test. 
Unfortunately the command kwallis doesn't return p-
values.

. sysuse auto
. kwallis price, by(foreign)
. return list

Is there a way to obtain p-values from Kruskal-Wallis-
test in a (e)return list; maybe within other commands?

Thanks,
Gerhard

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



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