Creating "GDP in 1960" variable from GDP variables for different years
Posted
by Tom Smith
on Stack Overflow
See other posts from Stack Overflow
or by Tom Smith
Published on 2010-04-30T14:32:15Z
Indexed on
2010/05/01
8:37 UTC
Read the original article
Hit count: 229
stata
Hi all,
I'm pretty new to stata...
I have a set of observations of the form "Country GDP Year". I want to create a new variable GDP1960, which gives the GDP in 1960 of each country for each year:
USA $100m 1960 USA $100m 1960 $100m
USA $200m 1965 --> USA $200m 1965 $100m
Canada $60m 1960 Canada $60m 1960 $60m
What's the right syntax to make this happen? (I assume egen
is involved in some mysterious way)
© Stack Overflow or respective owner