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" <[email protected]>
To   <[email protected]>
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: [email protected]
[mailto:[email protected]]On Behalf Of BBS
Querschnittsprojekt: Gerhard Sch�n
Sent: Wednesday, 1 June 2005 3:57 PM
To: [email protected]
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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index