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

st: Re: RE: Re: RE: is there a non-parametric version of -oneway, tab-?


From   "George M Hoffman MD" <ghoffman@mcw.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: RE: Re: RE: is there a non-parametric version of -oneway, tab-?
Date   Thu, 10 Feb 2005 15:17:45 -0600

roy, i am looking for a display of medians and iqrs, or 5-95% range, 
by(group)
-median- does not display medians either.

----- Original Message ----- 
From: "Haas, Roy W" <HaasR@uthscsa.edu>
To: <statalist@hsphsun2.harvard.edu>
Sent: Thursday, February 10, 2005 3:10 PM
Subject: st: RE: Re: RE: is there a non-parametric version of -oneway, tab-?


Look at help median. It has a by(groupname) option. I also has a
Wilcoxon rank sum.

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of George M
Hoffman MD
Sent: Thursday, February 10, 2005 3:04 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: Re: RE: is there a non-parametric version of -oneway, tab-?

Roy -
kwallis gives the rank sums, not the medians, by(group). i don't see any
option to display medians. am i missing something?

----- Original Message -----
From: "Haas, Roy W" <HaasR@uthscsa.edu>
To: <statalist@hsphsun2.harvard.edu>
Sent: Thursday, February 10, 2005 2:50 PM
Subject: st: RE: is there a non-parametric version of -oneway, tab-?


See help for kwallis.

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of George M
Hoffman MD
Sent: Thursday, February 10, 2005 2:42 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: is there a non-parametric version of -oneway, tab-?

is there a non-parametric version of -oneway, tab-?

it would look like:

nponeway Y X,tab

            |         Summary of Y
          X |   Median   IQR       Freq.
------------+------------------------------------
          0 |   62        14       527
          1 |   64        8        446
------------+------------------------------------
      Total |   63        9         973


Test: Equality of populations (Kruskal-Wallis test)

  +------------------------+
  |  X   | Obs |  Rank Sum |
  |------+-----+-----------|
  |    0 | 527 | 242187.00 |
  |    1 | 446 | 231664.00 |
  +------------------------+

chi-squared =    10.963 with 1 d.f.
probability =     0.0009

chi-squared with ties =    10.976 with 1 d.f.
probability =     0.0009
------------------



instead of
--------------------
 oneway Y X,tab

            |         Summary of Y
          X |        Mean   Std. Dev.       Freq.
------------+------------------------------------
          0 |    62.26945   11.296197         527
          1 |   64.325112   7.2799337         446
------------+------------------------------------
      Total |   63.211716     9.71425         973

                        Analysis of Variance
    Source              SS         df      MS            F     Prob > F
------------------------------------------------------------------------
Between groups      1020.78955      1   1020.78955     10.93     0.0010
 Within groups      90703.5969    971   93.4125612
------------------------------------------------------------------------
    Total           91724.3864    972   94.3666527

Bartlett's test for equal variances:  chi2(1) =  88.0638  Prob>chi2 =
0.000

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

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

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