Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

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

From |
David Kantor <kantor.d@att.net> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Weighted proportion |

Date |
Thu, 04 Oct 2012 21:34:16 -0400 |

At 07:10 PM 10/4/2012, you wrote:

Uhm yes, but that will give me the mean instead of the proportion...? On Thu, Oct 4, 2012 at 6:28 PM, kantor.d@att.net <kantor.d@att.net> wrote: > Have you tried > summarize rrace [weight=RWEIGHT] > ? [...] > Dear statalist, > > Any thoughts on a handy function or command to summarize the weighted > proportion? For instance, I have a variable that indicates to which > Race a respondent belongs. For example > > RRACE = 1 if Hispanic > RRACE = 2 if White > RRACE = 3 if Black > RRACE = 4 if Other > > Additionally I have a variable that weights the respondents (due to > oversampling of Hispanic's in my database), call this variable > RWEIGHT. > > Now I want to summarize the weighted proportions of RRACE, i.e. how > much % is Hispanic, White, etc. [...]

Of course, I "misspoke"; I meant tabulate. * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**Re: st: Weighted proportion***From:*Yuval Arbel <yuval.arbel@gmail.com>

**References**:**RE: st: Weighted proportion***From:*"kantor.d@att.net" <kantor.d@att.net>

**Re: st: Weighted proportion***From:*Daniel Almar de Sneijder <dasneijder@gmail.com>

- Prev by Date:
**RE: st: Re: st: Re: st: RE: Truncated sample or Heckman selection** - Next by Date:
**st: Unable to clear "invalid syntax r(197);" error in user-written .ado file** - Previous by thread:
**Re: st: Weighted proportion** - Next by thread:
**Re: st: Weighted proportion** - Index(es):