Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: appending variables in a dataset

From   jean-luc morin-chesnel <>
Subject   st: appending variables in a dataset
Date   Mon, 24 Feb 2014 13:30:44 +0100

Dear all,

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:

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?

Many thanks!!
*   For searches and help try:

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