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   "David Harrison" <[email protected]>
To   <[email protected]>
Subject   st: RE: save p-values from Kruskal-Wallis-test
Date   Wed, 1 Jun 2005 09:05:23 +0100

-kwallis- returns the chi-squared statistic and degrees of freedom, so you can get the p-value with the -chi2tail()- function:

. disp chi2tail(r(df), r(chi2))

Or, if you want the adjustment for ties (irrelevent in this example):

. disp chi2tail(r(df), r(chi2_adj))


-----Original Message-----
From: BBS Querschnittsprojekt: Gerhard Sch´┐Żn
[mailto:[email protected]]
Sent: 01 June 2005 08:57
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-

. 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?


*   For searches and help try:

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