egen meangdp = mean(gdp) if inrange(year,1963,1980),
by(country)
Nick
[email protected]
Kakatua Kutta
> I have a panel data which contains suppose, 50 countries gdp
> from year 1950 to 2000. Now for each country I would like to
> create a variable which measures the avergae gdp for a
> certain range of year, say from 1963 to 1980.I have gone
> through the manuals and archives without any clue.
*
* 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/