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]
st: reshaping
From
Abhimanyu Arora <[email protected]>
To
[email protected]
Subject
st: reshaping
Date
Thu, 25 Aug 2011 19:19:17 +0200
Good evening statalist
I have data in the following form with variable name row given by-
series country continent year2000 year2001 year2002
GDP
...
Exports
...
Imports
....
(series takes values such as GDP, Exports Imports etc)
Since I would like to do some operations on GDP and Exports/Imports
etc what I would ultimately like the variable name row to be is
country continent GDP2000 Exports2000 Imports2000 GDP2000 Exports2001 and so on
I managed to reshape as a first step to get
series country continent year value
But I need your suggestions to get to the form I desire.
Cheers
Abhimanyu
*
* 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/