Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Shaping dataset.


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Shaping dataset.
Date   Wed, 28 Nov 2012 13:03:17 +0000

Sorry, but the reasons why -reshape- won't work just are _not_obvious.

Please show

1. A real example of your data with variable names.

2. What you tried that did not work.

Nick

On Wed, Nov 28, 2012 at 12:53 PM, natasha agarwal
<agarwana2@googlemail.com> wrote:

> 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?
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index