Append

If there is a situation when you would like to add individuals to a dataset, you can use append. This is, for example, useful if you want to combine different subsamples.

Note
You must consider first if you need to add a variable in your datasets that identifies which sub sample the individuals belong to.
More information
help append

Open the dataset that you want to append something to, with the following command:

use "path\filename.dta"

Change “path\filename” to the full path (i.e. the folder on your computer that contains the file), and specify the file name, such as:

use "C:\Users\yerik\Stata Guide\TestDataAA.dta"

Then you can use the following command:

append using "path\filename.dta"

Change “path\filename” to the full path to the dataset that you want to append (called the “using” dataset) to the dataset that you have open (called the “master” dataset). For example:

append using "C:\Users\yerik\Stata Guide\TestDataAB.dta"

We suggest that you browse through your data next to make sure that everything worked out correctly.

Note
Appending data can, of course, be a bit more complicated than this. Explore the help file in Stata, for more useful options.