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]

Re: st: problem with stack


From   Miguel Ângelo Costa <[email protected]>
To   [email protected]
Subject   Re: st: problem with stack
Date   Wed, 27 Feb 2013 15:53:34 +0000

A couple of hours later I realize this was not so clever of me...
somehow I was fixed on stack instead of reshape.

Thanks Nick for clearing that out for me...I couldn't figure it out
frmo the help page.

Thank you both
Miguel Ângelo Costa


On Wed, Feb 27, 2013 at 2:48 PM, Nick Cox <[email protected]> wrote:
> -stack- tends to get over-shadowed by -reshape-, but to answer the question
>
> stack v1 v3 v2 v3 , into(v12 v3) clear
>
> is the way to do it. Several examples in the help do show the use of
> repeated names.
>
> Nick
>
> On Wed, Feb 27, 2013 at 1:26 PM, Maarten Buis <[email protected]> wrote:
>
> -help reshape-
>
> On Wed, Feb 27, 2013 at 1:57 PM, Miguel Ângelo Costa  wrote:
>
>>> I have 3 variables: v1 and v2 are measurements and v3 is the group
>>> variable. I want to stack v1 with v2 and that v3 gets doubled in order
>>> to identify the stacked variable accordingly.
>
> *
> *   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/

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