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

From |
"Nick Cox" <n.j.cox@durham.ac.uk> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: RE: Weighted mean of prices with quantities as weight |

Date |
Wed, 22 Oct 2008 19:10:44 +0100 |

This is an FAQ. FAQ . . Calculating variables containing weighted group summary statistics . . . . . . . . . . . . . . . . . . . . . N. J. Cox and S. P. Jenkins 1/03 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 n.j.cox@durham.ac.uk Beatrice Crozza I would like to construct a weighted mean of prices, taking as weight the quantity for each price. I am using the command egen(mean) How can I instruct Stata to use quantities for each price as weight? * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**References**:**st: Weighted mean of prices with quantities as weight***From:*"Beatrice Crozza" <beatrice.crozza@gmail.com>

- Prev by Date:
**st: svyselmlog** - Next by Date:
**st: Re: Weighted mean of prices with quantities as weight** - Previous by thread:
**st: Weighted mean of prices with quantities as weight** - Next by thread:
**st: Re: Weighted mean of prices with quantities as weight** - Index(es):

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