>>
>>
Yumin,
You may probably want to have a look at the reshape command in stata (help reshape) and the link to the FAQ on this on the Stata website:
http://www.stata.com/support/faqs/data/reshape3.html
Dev
>>> [email protected] 13/08/2004 00:34:50 >>>
Dear all,
I have been trying to save data from World Development
Indicators (WDI, online) into a cross-section
time-series format. The original data look like the
following
Country Variable Name 1960 1961 � 2002
Afghanistan Aid X X � X
Afghanistan Population X X �X
� � � � � �
� � � � � �
Afghanistan Wage X X � X
Albania Aid X X � X
Albania Population X X � X
� � � � � �
� � � � � �
Albania Wage X X � X
The ideal format I would like to have would be:
Country Aid Population � � Wage
Afghanistan 1960 X X � X
Afghanistan 1961 X X � X
� � � � � �
� � � � � �
Afghanistan 2002 X X � X
Albania 1960 X X � X
Albania 1961 X X � X
� � � � � �
� � � � � �
Albania 2002 X X � X
� � � � � �
China 1960 X X � X
China 1961 X X � X
� � � � � �
� � � � � �
China 2002 X X � X
The problem is that some countries have data on more
variables than do other countries. Any kindly
suggestion on how to execute the data manipulation
trick in stata or on how to save WDI online properly
would be tremendously appreciated. Many thanks!
Best,
Yumin
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
*
* 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/
This message has been scanned but we cannot guarantee that it and any
attachments are free from viruses or other damaging content: you are
advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
*
* 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/