Common commands
Commonly-used commands to work with data.
The syntax files below show you how to perform some common data management tasks, e.g., merging two files, matching information of respondent and their partner etc, using Understanding Society data files.
Commonly-used commands to work with data.
In this example we will distribute household level information to individuals in those households. We can do this by merging household level file (such as w_hhresp) with an individual level file (such as w_indresp) within the same Wave.
To match individual level files across two waves into a wide format, do the following (for more waves add wave specific prefix in the foreach statement)
In this example we will summarise individual level information within a household (number of 18-24-year-olds in the household) from an individual level file and then add it to the household level file.
Sign up to our newsletter