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

st: Re: group means


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: Re: group means
Date   Wed, 23 Mar 2005 07:46:25 -0500

Something like

egen rgdpC = mean(rgdppc), by(year)

will do it... but note that since these group means have no variation across countries for each year, they are the equivalent of a fixed time effect.

Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.html

On Mar 23, 2005, at 2:33 AM, Rick wrote:



Someone could tell me if there exists a simple way to generate variables of
cross-section averages (mean groups) of a panel data?

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