Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: multiplication of a variable with the mean value of each country
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: multiplication of a variable with the mean value of each country
Date
Sun, 13 May 2012 16:13:47 +0100
Use -egen-'s -mean()- function to get the mean of Y -by(country)-.
Nick
On Sun, May 13, 2012 at 3:32 PM, Humaira Asad <[email protected]> wrote:
> I have a panel data covering 107 countries spanning 1960-2010. I want to multiply a variable X with the mean value of Y for each country. How can I do it in Stata?
*
* 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/