Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Standard error of median using pweights


From   Wassim Tarraf <[email protected]>
To   [email protected]
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<[email protected]>  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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index