Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: Comparing medians with pweight


From   "Ada C. Chen" <[email protected]>
To   [email protected]
Subject   Re: st: RE: Comparing medians with pweight
Date   Thu, 22 Mar 2007 17:57:45 -0400

Hi Stas,

Do you suggest that even following Roger's suggestion by using
-somersd- package to compare confidence intervals for rank statistics,
such as median,  I have to run a bootstrap to get correct comparison?

-ACC



2007/3/22, Stas Kolenikov <[email protected]>:
The issue might be quite tricky: median is not a smooth function of
the data, so many inference methods generally taken for granted do not
apply to it. Asymptotic normality of the median is derived in a rather
non-standard way and requires regularity conditions that are pretty
difficult to verify. If you are dealing with survey data, neither
linearization nor the jackknife will produce appropriate (consistent)
standard errors for the population quantiles, and one has to use the
balanced repeated replication or the even more complicated survey
bootstrap both of which require the data provider's replication
weights -- it is not at all that trivial to run those procedures on
the analyst's side without getting one's feet really, really wet.

See http://www.citeulike.org/user/ctacmo/article/1036970 if you can find it.

On 3/22/07, Ada C. Chen <[email protected]> wrote:
> > Is it possible to compare medians of a continuous variable between two
> > groups by using -pweight- instead of -fweight-? Does stata only allow
> > for fweight?

--
Stas Kolenikov
http://stas.kolenikov.name
*
*   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