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

st: egen "mean weight"


From   "Jorge Tuesta" <[email protected]>
To   <[email protected]>
Subject   st: egen "mean weight"
Date   Thu, 1 Sep 2005 22:25:47 -0500

Dear statalisters,

Is it posible to create a average weight variable using "egen"?

I normally write:

egen mwage=mean(wage), by(iid)

but i would like "mean weight" (using [fweight=pop], for example) not simple mean. Is it posible?

Thanks in advance!

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