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: appending variables in a dataset


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: appending variables in a dataset
Date   Mon, 24 Feb 2014 12:45:52 +0000

-help stack-

Nick
[email protected]

On 24 February 2014 12:30, jean-luc morin-chesnel
<[email protected]> wrote:

> I have an algorithmic question.
>
> I have the following 6 variables A1 A2 A3 B1 B2 B3 in my dataset
> (actually I have more, but this is a minimal example).
>
>
> A1 A2 A3 B1 B2 B3
> -----------------------------------
> a11 a12 a13 b11 b12 b13
> a21 a22 a23 b21 b22 b23
> ...
>
> Where is xij the element on line i and column j
>
> I would like to obtain the following dataset:
>
> BIG1 BIG2 BIG3
> ----------------------
> a11 a12 a13
> a21 a22 a23
> ...
> b11 b12 b13
> b21 b22 b23
> ...
>
> that is, I have "appended" the group of variable B1 B2 B3 to the group
> of variables A1 A2 A3.
>
> Do you know how to do that in Stata 13.1?
*
*   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