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: Weighted proportion


From   Yuval Arbel <[email protected]>
To   [email protected]
Subject   Re: st: Weighted proportion
Date   Fri, 5 Oct 2012 01:53:51 -0700

Steve, please take a look at Patrick's question:

st: zoom on histograms

and the links given there by Nick Cox.

What Daniel asked in other words is a similar question: how to produce
the numerical values from the histogram?

On Thu, Oct 4, 2012 at 6:34 PM, David Kantor <[email protected]> wrote:
> 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, [email protected] <[email protected]> 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/



-- 
Dr. Yuval Arbel
School of Business
Carmel Academic Center
4 Shaar Palmer Street,
Haifa 33031, Israel
e-mail1: [email protected]
e-mail2: [email protected]
*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index