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

st: Transpose?


From   jdubas@nd.edu
To   statalist@hsphsun2.harvard.edu
Subject   st: Transpose?
Date   Tue, 13 Apr 2004 16:05:02 -0500

I have data that looks like this:

yr          series           country1       country2      country3
1960      exports           (value)        (value)         (value)
1960      imports           (value)         (value)         (value)
1961      exports            "     "           " "               "    "
1961  

etc...

I would like to get the data so it looks like:

yr     country   series(exports)    series(imports)
1960   1             (value)            (value)
1961   1              ""                      ""
1960   2             ""                        ""
1961  2                ""                      ""


I am new to Stata and completely at a loss as to how to accomplish this.  Any
help would be greatly appreciated.

Thanks,
Justin


*
*   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/



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