Bookmark and Share

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: Shaping dataset.


From   natasha agarwal <[email protected]>
To   [email protected]
Subject   st: Shaping dataset.
Date   Wed, 28 Nov 2012 12:53:34 +0000

Dear All,

I have a dataset that looks like:
                                          Agricultural Industry
Mining Industry
Agricultural product                   0.10
       0.20
Mining Product                          0.30
         0.30

I want to transform it to

Agricultural product    agricultural industry   0.10
Agricultural product   mining industry             0.20
mining product          agricultural industry       0.30
mining product          mining industry             0.30

The reshape command would not work for obvious reasons.

I was wondering if anybody could help me with the same?

Thanks,
Natasha
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index