Statalist


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

Re: st: question about weights in histograms


From   Steven Joel Hirsch Samuels <[email protected]>
To   [email protected]
Subject   Re: st: question about weights in histograms
Date   Wed, 10 Oct 2007 12:16:46 -0400

Round the weights to the nearest integer and use these as frequency weights. -histogram- is not a survey command and so is unaffected by -svyset-. The results will be nearly identical to what you would get if you estimated the per cent in each category using -svy: proportion-. By the way, in most complex surveys the weights have been trimmed to reduce total error: bias^2 + se^2. So you cannot expect 'unbiased' estimates even with the original weights.

-Steve

On Oct 10, 2007, at 12:02 PM, Scott Cunningham wrote:


I am using 5% Census and March CPS data (United States) to construct
histograms.  These data include probability weights.  I know that
histogram can adjust for frequency weights, but apparently not
explicitly for probability weights that are not integers.  If I
-svyset- the data using the perweight, will -histogram- construct
unbiased estimates of the population?  Here is my code

. svyset [perweight=perwt]
. histogram tax, by(white, col(1)) percent

where "tax" is an income tax variable, and the data is
individual-level for the March CPS.  For the Census, I use a different
variable isntead of "tax" and the data is household-level instead.
teven  Samuels

[email protected]
18 Cantine's Island
Saugerties, NY 12477
Phone: 845-246-0774
EFax: 208-498-7441




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