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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: Arranging variables across rows


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Arranging variables across rows
Date   Wed, 27 Jun 2012 08:11:11 +0100

As a simple principle, we don't know about any other data if you don't
tell us. But my question remains. I don't think this structure is one
that is easy to work with in Stata. You could in principle easily take
the one indicator variable just created and turn it into 19 indicator
variables parallel to the rest of your data.

Nick

On Wed, Jun 27, 2012 at 4:32 AM, samuel gyetvay <sam.gyetvay@gmail.com> wrote:
> the rest of my data set is organized like A1, A2, A3, ... A19, with
> everything else overlapping. It is only B1, ... B8 that has this
> particular structure.
>
> -Sam
>
> On Tue, Jun 26, 2012 at 8:26 PM, Nick Cox <njcoxstata@gmail.com> wrote:
>> I've not thought out a -merge- solution.
>>
>> What's the attraction of a short structure? What can you do with it?
>>
>> Nick
>>
>> On Wed, Jun 27, 2012 at 12:12 AM, samuel gyetvay <sam.gyetvay@gmail.com> wrote:
>>> Thank you for your help, Nick. I am new to stata and a lot of these
>>> commands are unfamiliar to me (which is a good thing, given that those
>>> I already know arent solving my problem), and I will work through your
>>> code. Just a few questions:
>>>
>>> The rest of my data set is organized nicely, save for this crucial
>>> variable. I don't want to reshape unless I can return to a "short
>>> structure." Is this possible/simple?
>>>
>>> Also, could you possibly briefly explain what the -merge- solution
>>> might be? No need to go into such great detail.
>>>
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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   |   Site index