Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Help: weight average


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Help: weight average
Date   Fri, 1 Aug 2003 18:07:04 +0100

Yanjun Bao

> We have say 200 survey sites, within each site we have several
> communitites and each has a key informant.  Say that every informant
> answers question A.  According to the size of communities,
> we have created
> weights for each key informant relative to the site.  We
> want to calculate
> the weighted average of the responses from the informant
> using the weights
> for each site.  Any help will be greatly appreciated.

There's an FAQ which may help:

I want to calculate a variable containing weighted group
summary statistics, but I do not want to collapse the data
and egen does not support weights. How can I do this?
http://www.stata.com/support/faqs/data/weighted.html

Nick
[email protected]

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