Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Standard error of median using pweights


From   Wassim Tarraf <tarrafwassim@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Standard error of median using pweights
Date   Tue, 03 May 2011 11:47:57 -0400

Stas- I tried using your -epctile- package to calculate the median (please see below), but I keep getting error messages that I am unable to explain. Any guidance on this would be appreciated.

svyset psu [pw=saqpw], strata(strat)

*Median over x1 categories

epctile y, svy percentiles(50) subpop(if x2==1 & x3==1) over(x1)
unrecognized command:  FormXLevels
r(199);

*Median subpoping on x1 categories

epctile y, svy percentiles(50) subpop(if x2==1 & x3==1 & x1==1)

estimates post: matrix has missing values
r(504);

Thanks,
Wassim

On 5/2/2011 4:11 PM, Stas Kolenikov wrote:
On Mon, May 2, 2011 at 10:29 AM, David Radwin<dradwin@mprinc.com>  wrote:
Dear Stata-listers,

Is it possible to calculate the standard error of a median using pweights,
and if so, how? The dataset is a survey with a BRR design.

This 2007 posting suggests it is possible but does not get into specifics:

http://www.stata.com/statalist/archive/2007-03/msg00296.html
I have a package that does this.

net from http://web.missouri.edu/~kolenikovs/stata
net d epctile



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


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index