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

Re: st: testing the equality of medians


From   Ronan Conroy <rconroy@rcsi.ie>
To   "statalist hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: testing the equality of medians
Date   Mon, 3 Nov 2003 10:27:00 -0000

on 31/10/2003 16:54, Shahbaz Ali Sheikh at shahbaz@brandeis.edu wrote:



Hi, 

I need to test the equality of medians, how can I do that. I know ttest does

that for means only. 



A t-test is just a regression where the only predictor is binary. Stata's
quantile regression allows you to use a binary predictor to model the
median.

This approach has the advantage that you may want to adjust the comparison
for confounding or biasing variables.


Ronan M Conroy (rconroy@rcsi.ie)
Lecturer in Biostatistics
Royal College of Surgeons
Dublin 2, Ireland
+353 1 402 2431 (fax 2764) 

-------------------- 
Bombing our way to a perfect world...



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