Example of combining cases using ADD FILES

In this example, we have GSS2014 and GSS2016 files that have some variables in common. Using ADD FILES, we create a combined file.

Following is a screenshot of the first five rows of data from a GSS2014 extract:

The file has 2,538 rows and five variables.

Here is a screenshot of the first five rows of data from a GSS2016 extract:

The file has 2,867 row and 29 variables.

Suppose that you wish to combine the files. While the 2016 image does not show all the fields, it turns out that the 2016 file has ...

Get Data Analysis with IBM SPSS Statistics now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.