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

From |
"Scott Cunningham" <scunning@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: question about weights in histograms |

Date |
Thu, 11 Oct 2007 07:41:28 -0500 |

Thank you Steve and Austin for these recommendations. On 10/10/07, Steven Joel Hirsch Samuels <sjhsamuels@earthlink.net> wrote: > Good call, Austin! All multiples of the original weight will give the > same result for means and percentages. > > -Steve > On Oct 10, 2007, at 12:44 PM, Austin Nichols wrote: > > > Or, better, multiply the weight by the reciprocal of the smallest > > increment ("units" in -codebook- output) and use that as a frequency > > weight, which should give you identical point estimates to -svy- > > output: > > > > use hhinc mars using cpsmar07 > > g double wt=round(marsupwt*100) > > hist hhinc [fw=wt], xscale(log) percent > > > > On 10/10/07, Steven Joel Hirsch Samuels <sjhsamuels@earthlink.net> > > wrote: > >> 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 > > * > > * 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/ > > Steven Samuels > > sjhsamuels@earthlink.net > 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/ > -- "A man must be orthodox on most things, or he will never have time able to practice his own particular heresy." - GK Chesterton * * 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/

**References**:**st: question about weights in histograms***From:*"Scott Cunningham" <scunning@gmail.com>

**Re: st: question about weights in histograms***From:*Steven Joel Hirsch Samuels <sjhsamuels@earthlink.net>

**Re: st: question about weights in histograms***From:*"Austin Nichols" <austinnichols@gmail.com>

**Re: st: question about weights in histograms***From:*Steven Joel Hirsch Samuels <sjhsamuels@earthlink.net>

- Prev by Date:
**st: mixed effect model and autocorrelation** - Next by Date:
**st: New Resource for Using R with Stata** - Previous by thread:
**Re: st: question about weights in histograms** - Next by thread:
**st: Identifying regions within a cross-section with Stata** - Index(es):

© Copyright 1996–2016 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |