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

st: egen "mean weight"

From   "Jorge Tuesta" <>
To   <>
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!

* For searches and help try:

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