Dear statalisters,
I have a very quick question regarding line graph in Stata ver.8.
Here is the structure of the data (a simple panel)
country year gdp
a 1970 1
a 1971 2
. . .
a 1999 18
b 1970 2
b 1971 5
. . .
b 1999 15
c 1970 5
c 1971 8
. . .
c 1999 10
Now, I would like to have the (connected) line graph for each country's gdp on year 1970-1999
that is, three lines for three country on the same graph in this case
I know that I can do this by reshaping the data into wide format, but I have lots of countries and variables which
makes reshaping very unattractive.
Can I do this with this long panel data?
Thanks in advance.
Yong
*
* 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/