# st: Re: Re: How does -kwallis2- compute adjusted p-values for significance?

 From "Martin Weiss" To Subject st: Re: Re: How does -kwallis2- compute adjusted p-values for significance? Date Tue, 10 Feb 2009 21:29:13 +0100

```<>

```
Just discovered: To make the -pause- strategy work, you also need a "pause" before line 152 as there are two "Adjusted" as part of an -if- construct in kwallis2.ado.
```
HTH
Martin
_______________________
```
----- Original Message ----- From: "Martin Weiss" <martin.weiss1@gmx.de>
```To: <statalist@hsphsun2.harvard.edu>
Sent: Tuesday, February 10, 2009 9:18 PM
```
Subject: st: Re: How does -kwallis2- compute adjusted p-values for significance?
```

```
```<>

```
There are several ways to get at this information, one being to -trace- the thing and scroll up to the point where it is created afterwards. -set tracehilite- is very helpful in this exercise...
```
******
sysuse census, clear
set tr on
kwallis2 medage, by(region)
set tr off
*******

```
Next possibility: If you -log- the process, you can look at the log in a text editor and search for "Adjusted"...
```
```
Or you look at kwallis2.ado, for instance with NJC`s -ssc d fedit- where you will find lines 123-124:
```
*******
local c1=(1-\$S_level/100)/(2*(`maxGrp'-1))
di in gr "(Adjusted p-value for significance is " %7.6f `c1' ")" _n
*******

```
If you want, create your own copy of kwallis2.ado and toss in a -pause- so you can inspect the state of the world when line 123 is processed...
```

HTH
Martin
_______________________
```
----- Original Message ----- From: "Tiago V. Pereira" <tiago.pereira@incor.usp.br>
```To: <statalist@hsphsun2.harvard.edu>
Sent: Tuesday, February 10, 2009 7:31 PM
```
Subject: st: How does -kwallis2- compute adjusted p-values for significance?
```

```
```Dear Statalisters,

p-values for significance when the Kruskal-Wallis Test is statistically
significant?

Cheers!

Tiago

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

```
```
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

```
```
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
```