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

st: RE: survey median estimator


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: survey median estimator
Date   Sun, 17 Nov 2002 16:50:40 -0000

[email protected]

> I am trying to estimate median of subpopulations using 
> survey data. My
> question is how to account for the survey weight in estimating
> median.Specifically, I am using the following command
> egen median=median(edpct) if salquart==3, by(type).
> How can I incorparate the survey wieghts in using 
> egen(median) funtion to
> calculate median in above command?

I can't answer the -svy- aspect, but I 
am pretty clear that -egen- and weights 
don't mix well. That is, official Stata 
functions don't support weights, so this needs 
to be done in some other way. 

Nick 
[email protected] 
*
*   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