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

st: Newbie question on creating variable

From   "Kakatua Kutta" <[email protected]>
To   [email protected]
Subject   st: Newbie question on creating variable
Date   Mon, 01 Mar 2004 14:14:46 -0500

countrycode���������� year������������ gdp
BAN                   1960             65
BAN                   1965             75
BAN                   1970             85
CAN                   1960             25
CAN                   1965             35
CAN                   1970             45

Dear Stata users,
Lets say I have the above data set. I want� to create a variable which measures the difference between the gdp in year 1970 and gdp in 1965 for each country. That is if "diff" is the new variable it would be diff = gdp(1970)-gdp (1965) for each country.
I am a new user and already spent hours on this. I would much appreciate your help.
Thanks in advance
Sign-up for Ads Free at

*   For searches and help try:

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